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 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 5026 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 4071 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 14732 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 5204 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 5341 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 6027 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 8745 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 5124 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 8380 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 5108 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 5029 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 6530 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 3121 2020-05-21 10:14:04
-
- How to view error logs in docker
- The way to view the error log in docker is: 1. Execute the [docker ps -a] command to view the ID of the stopped container; 2. Execute the [docker logs id] command to view the corresponding log information.
- Docker 5870 2020-05-21 10:01:56
-
- How to enter the docker container directory
- The method to enter the docker container directory is: You can enter by executing the [docker container exec -it container id /bin/bash] command or the [docker container exec -it container id /bin/sh] command.
- Docker 7205 2020-05-20 13:24:49