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:
-
- How docker install centos image
- How to install the centos image with docker: 1. Run the command [docker pull centos:7] to pull the centos7 image; 2. Run the command [docker run -d -i -t <IMAGE ID> /bin/bash] to start the centos7 image.
- Docker 2779 2020-04-14 15:06:01
-
- How to solve the problem that docker cannot delete the image
- The solution to the problem that docker cannot delete the image is: 1. View all current images; 2. Run the command [docker rm container name] to delete the container; 3. Run the command [docker rmi image name] to delete the image.
- Docker 3603 2020-04-14 14:48:09
-
- How to upgrade docker containers
- The method to upgrade the docker container is: 1. Upgrade the Image; 2. Run the [docker rm] command to delete the old container; 3. Run the command [docker-compose start] to restart the new container; 4. Upgrade the database.
- Docker 8199 2020-04-14 14:27:17
-
- In what areas is docker mainly used?
- The main usage scenarios of docker: 1. Simplify configuration; 2. Code pipeline management; 3. Improve development efficiency; 4. Isolate applications; 5. Integrate servers; 6. Debugging capabilities; 7. Multi-tenant environment; 8. Rapid deployment.
- Docker 4603 2020-04-14 14:09:58
-
- What are the advantages of docker
- The advantages of docker are: 1. Cross-platform portability, packaging according to unified standards; 2. Application-oriented, optimized deployment of applications; 3. Version control; 4. Component reuse, component-based construction; 5. Sharability, public registration server.
- Docker 4724 2020-04-14 13:54:27
-
- How to check container service status in docker
- The method for docker to check the container service status is: 1. [docker stats nginx1] to check the container status; 2. [docker top nginx1] to check the process information; 3. [docker inspect nginx1] to check all the status of the container.
- Docker 12499 2020-04-14 13:33:48
-
- How to view network details in docker
- The method for docker to view network details is: 1. Run the command [docker network ls] to view the network list; 2. Run the command [docker network inspect options] to view the network details.
- Docker 13092 2020-04-14 13:19:51
-
- How to change the image warehouse in docker
- The method for docker to change the mirror warehouse is: 1. Create the configuration file daemon.json; 2. Add the configuration ["registry-mirrors":["https://registry.docker-cn.com"]]; 3. Restart the docker service .
- Docker 5800 2020-04-14 13:11:43
-
- How to copy files in docker container to local
- The way docker copies the files in the container to the local is to directly execute the command [docker container cp [OPTIONS] CONTAINER:SRC_PATH DEST_PATH].
- Docker 7292 2020-04-14 11:53:35
-
- How to start docker image
- The method for docker to start the image is: 1. Create a new startup folder; 2. Write the docker-composer.yml file; 3. Execute the command [docker-composer up] to start the image.
- Docker 7196 2020-04-14 11:47:36
-
- How to solve the problem that the docker container cannot ping the external network
- The solution to the problem that docker containers cannot ping the external network is to directly stop all containers and restart docker, such as [service docker restart].
- Docker 3050 2020-04-14 11:29:16
-
- What should I do if the docker container cannot access the external network?
- The solution to the problem that the docker container cannot access the external network is: 1. Open the /etc/sysctl.conf configuration file; 2. Add the configuration [net.ipv4.ip_forward=1]; 3. Execute the command [sysctl restart network] to restart the network service.
- Docker 4606 2020-04-14 11:17:14
-
- How to solve the problem of domain name resolution failure in docker container
- The solution to domain name resolution failure in the docker container is: 1. Execute the command [echo 1 > /proc/sys/net/ipv4/ip_forward1] to modify the configuration file; 2. Execute the command [sysctl -p /etc/sysctl.conf1] to enable The configuration file takes effect.
- Docker 5462 2020-04-14 10:56:19
-
- How to modify the system time of docker container
- The method to modify the system time of the docker container is: 1. [docker run -it --cap-add SYS_TIME --rm --name centos centos /bin/bash]; 2. [date -s 13:02:00].
- Docker 6222 2020-04-14 10:44:18
-
- What to do if the docker container cannot be stopped
- Solution to the problem that the docker container cannot be stopped: 1. Run the umount command to cancel the mounting; 2. Delete the docker directory; 3. Delete the container service [docker rm -f caf8ef20f3clc]; 4. Restart the docker service.
- Docker 6395 2020-04-14 10:38:11