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 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 3642 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 10276 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 17522 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 6329 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 5632 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 5869 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 5416 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 3105 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 4015 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 4071 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 5378 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 4612 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 2851 2020-03-23 18:27:45
-
- What should I do if the docker container cannot be deleted?
- The solution to the problem that the docker container cannot be deleted is: 1. Execute the command [docker network disconnect --force bridge container ID\container name] to clear the network; 2. Execute the command [docker rm -f container ID\container name] to forcefully delete the container.
- Docker 2710 2020-03-23 18:20:45
-
- How to start a docker container automatically after booting
- How to set the docker container to start automatically at boot: execute the command [docker run -m 512m --memory-swap 1G -it -p 6379:6379 --restart=always --name redis -d redis].
- Docker 3369 2020-03-23 18:13:55