current location:Home > Technical Articles > Operation and Maintenance > Docker
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Daily Programming WeChat Applet Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- What should I do if docker cannot be accessed by the outside world?
- The solution to the problem that docker cannot be accessed by the outside world is: 1. Restart iptables; 2. Execute the command [iptables -t nat -A POSTROUTING -s 172.17.0.0/16 ! -o docker0 -j MASQUERADE] to add rules.
- Docker 2569 2020-03-24 14:40:59
-
- What should I do if docker cannot delete the container?
- The solution to the problem that docker cannot delete the container is: 1. First, execute the umount command to cancel the mounting; 2. Then, execute the command [docker kill --signal=SIGINT caf8ef20f3c1] to delete the container service.
- Docker 4701 2020-03-24 14:25:36
-
- What are the advantages of docker
- Advantages of docker: 1. Fast, docker shares an operating system through kernel sharing, which improves the speed of starting and stopping docker containers; 2. Portability, as long as the docker container is still running, the application can be guaranteed to work normally run.
- Docker 3725 2020-03-24 14:09:20
-
- There are several states of docker containers
- Docker containers are roughly divided into three states from generation to running deployment: 1. Dockerfile, a template file used to create an image image; 2. Image, an image file; 3. Container, a container.
- Docker 10350 2020-03-24 14:00:32
-
- How to check the created container ID in docker
- How to check the container ID with docker: 1. Use the docker ps -aqf "name=containername" command to check. 2. Use the docker inspect --format="{{.Id}}"container_name command to view.
- Docker 17614 2020-03-24 13:58:30
-
- How to check the specific version number in docker
- How to check the specific version number of docker: You can use the docker version command to check the specific version number. The docker version command is used to display Docker version information.
- Docker 6415 2020-03-24 13:52:31
-
- What should I do if the docker container port cannot be accessed?
- The solution to the problem that the docker container port cannot be accessed is: 1. Execute the command [docker stop $(docker ps -a -q)] to stop all containers; 2. Execute the command [docker rm $(docker ps -aq)] to delete all container.
- Docker 5720 2020-03-24 13:50:31
-
- What is the difference between docker and vmware
- The difference between docker and vmware is: vmware is a slave operating system created based on the host machine operating system. The docker daemon replaces the slave operating system in VMware. It is a background process running on the operating system and is used to manage docker. container.
- Docker 5956 2020-03-24 13:40:28
-
- How docker packages images into files
- The way docker packages the image into a file is to execute the command [docker save -o file name to save image to save], such as [docker save -o cc.tar bb:v1.0].
- Docker 5502 2020-03-24 11:55:19
-
- How to configure Alibaba Cloud image with docker
- The method for docker to configure the Alibaba Cloud image is: 1. Create a new /etc/docker folder; 2. Add the Alibaba Cloud image; 3. Execute the [systemctl restart docker] command to restart docker.
- Docker 3193 2020-03-24 11:40:34
-
- How docker sets port mapping for running containers
- The method for docker to set port mapping for a running container is: 1. First, replace container_name with the container name in the actual environment; 2. Then, map the 8000 port of the container to the 8001 port of the docker host.
- Docker 4125 2020-03-24 11:28:14
-
- How to change the mapped port in docker
- The method for docker to change the mapped port is: 1. Find the container that needs to change the port; 2. Change the default environment variable of docker; 3. Stop the container; 4. Stop the docker service; 5. Edit and change the configuration file of the container; 6. Start docker Services and containers.
- Docker 4144 2020-03-24 11:18:52
-
- What to do if yum cannot be used in docker
- The solution to the inability to use yum in docker is: 1. First, open the /etc/sysctl.conf configuration file; 2. Then, add routing forwarding configuration, such as [net.ipv4.ip_forward=1]; 3. Finally, restart the network card That’s it.
- Docker 5486 2020-03-24 10:36:26
-
- Unable to connect to the Internet after installing docker
- To solve the problem that Docker cannot connect to the Internet: Add "net.ipv4.ip_forward=1" to the /etc/sysctl.conf file, and then use the "systemctl restart network" command to restart the service.
- Docker 4728 2020-03-24 10:30:23
-
- What should I do if the docker container cannot be stopped?
- The solution to the problem that the docker container cannot be stopped is: 1. Execute the command [docker rm -f jenkins] to forcefully delete the container; 2. Execute the command [docker network disconnect --force bridge jenkins] to clear the network occupation.
- Docker 2931 2020-03-23 18:27:45