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 an error occurs when starting docker to map to the host?
- The solution to the error when starting docker to map to the host is: 1. Terminate the docker process; 2. Clear all chains in the NAT table; 3. Stop docker's default bridge; 4. Delete the bridge; 5. Restart docker.
- Docker 2957 2020-05-21 15:10:25
-
- What should I do if docker fails to start the hello-world container?
- The solution to docker's failure to start the hello-world container is: 1. Stop the docker service and delete the docker file; 2. Edit the docker-storage file and modify the configuration [DOCKER_STORAGE_OPTIONS]; 3. Restart docker.
- Docker 3887 2020-05-21 14:58:07
-
- What should I do if I cannot access nginx after docker starts it?
- The solution to the problem that nginx cannot be accessed after docker starts is to specify the mapped port parameters of port 80 in the run command. The specific command is such as [docker run --name nginx -p 80:80 -d nginx].
- Docker 5155 2020-05-21 14:46:11
-
- How to copy files from docker to local
- The method of copying files from docker to local is: You can use the [docker cp] command to achieve this. The specific command is such as [docker cp <containerId>:/file/path/within/container /host/path/target].
- Docker 4207 2020-05-21 14:26:49
-
- How to check whether docker is installed in linux
- The way to check whether docker is installed in Linux is to check by executing the [docker version] command. If the output information contains the Client option and Server option, it means that docker has been installed.
- Docker 14955 2020-05-21 14:20:04
-
- What should I do if it prompts that there is insufficient space when pulling the docker image?
- The solution to the insufficient space prompt when pulling the docker image is: 1. Execute the df command to check the remaining space in the root directory; 2. Execute the mkdir command to create a target directory; 3. Execute the cat command to create a configuration file; 4. Restart docker.
- Docker 5331 2020-05-21 13:58:00
-
- What is the difference between docker ce and docker ee
- The difference between docker ce and docker ee is: docker ce is an open source project maintained by docker company and is a free container product based on the moby project; docker ee is a closed source product maintained by docker company and is a commercial product of docker company.
- Docker 5444 2020-05-21 13:39:33
-
- How to modify docker image name
- The method for docker to modify the image name is: 1. Execute the [docker ps] command to view the running container information; 2. Execute the [docker rename] command to rename the image; 3. Execute the [docker ps] command again to check whether the modification is successful.
- Docker 6184 2020-05-21 13:32:18
-
- How to check the time in docker container
- The method to check the time in the docker container is: 1. Execute the [docker exec -u 0 -it container ID /bin/bash] command to enter the docker container; 2. Execute the [date] command to check the time in the docker container.
- Docker 8871 2020-05-21 13:18:25
-
- What to do if the connection to mysql in docker fails
- The solution to the failure to connect to mysql in docker is: 1. Execute the [docker ps] command to view the running container and ensure that the mysql you want to connect has started; 2. Execute the [docker exec] command to enter the mysql container; 3. Final update mysql password, reconnect.
- Docker 5237 2020-05-21 11:39:53
-
- How to find the docker configuration file
- The method to find the docker configuration file is: 1. Execute the [cat /usr/lib/systemd/system/docker.service] command to view the systemd configuration; 2. Find the [EnvironmentFile] option, which represents the location of the configuration file.
- Docker 8500 2020-05-21 11:16:54
-
- What to do if the docker service fails to start
- The solution to the failure to start the docker service is: 1. Edit the /etc/sysconfig/docker file and modify the configuration [OPTIONS='--selinux-enabled=false']; 2. Restart the docker service.
- Docker 5215 2020-05-21 10:51:44
-
- How to clear docker logs
- The method to clear the docker log is: 1. Execute the [find /var/lib/docker/containers/ -name *-json.log] command to find the container log; 2. Execute [cat /dev/null > *-json.log] command to delete the log.
- Docker 5224 2020-05-21 10:39:30
-
- What should I do if the host cannot access the docker container in the virtual machine?
- The solution to the problem that the host cannot access the docker container in the virtual machine is: 1. Execute the ifconfig command to view the network segment of the docker container and the IP address of centos; 2. Execute the ROUTE command to map the internal port of the docker container to the external host port.
- Docker 6744 2020-05-21 10:27:27
-
- What to do if the computer cannot be shut down after installing docker
- The solution to the problem that the computer cannot shut down after installing docker is: 1. Uninstall docker and install docker on the virtual machine; 2. Open the program uninstall panel, click the [Enable or turn off windows features] option, and uncheck [HYper-V] option.
- Docker 3267 2020-05-21 10:14:04