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 fails to connect to mysql?
- Solution to the failure of docker to connect to mysql: 1. Check the running container through the "docker ps" command; 2. Run "docker exec -it b30062adc08c /bin/bash" to enter the mysql container; 3. Enter "mysql -u root -p "Command; 4. Restart mysql, and then use navicat to connect successfully.
- Docker 9109 2022-10-21 16:06:15
-
- What should I do if docker start cannot start?
- Solution to docker start failure: 1. Check the running status, and then release the occupied memory through the "echo 3 > /proc/sys/vm/drop_caches" command; 2. Use "$netstat -nltp|grep .. ." command to check whether the port has been occupied. If it is found to be occupied after going online, change it to an available port and restart.
- Docker 9422 2022-10-21 15:43:31
-
- What to do if there is an error in docker mapping port
- Solution to docker mapping port error: 1. Switch to the root account; 2. Use the "netstat -nap" command to check the pid of the program running; 3. Use the "kill -9 2901 su u260517" command to kill the program and switch the program. .
- Docker 3621 2022-10-21 15:29:13
-
- What to do if docker logs are garbled?
- Solution to garbled docker logs: 1. Add "ENV LANG en_US.UTF-8 ENV LANGUAGE en_US:en ENV LC_ALL en_US.UTF-8" to the dockerfile; 2. Select "Edit Custom VM Options" and add "Dfile.encoding =utf-8" is enough.
- Docker 4063 2022-10-21 15:15:54
-
- What should I do if I can't enter docker hub?
- The reason why docker hub cannot be accessed is because "hub.docker.com" is located abroad, so the access speed is very slow, resulting in the inability to access the URL. The solution: 1. Find the "daemon.json" file; 2. Use the vim command Open it; 3. Add the content "{ "registry-mirrors" :["https://docker.mirrors.ustc.edu.cn"]}"; 4. Restart docker.
- Docker 20619 2022-10-21 14:54:24
-
- What to do if docker cp fails
- Solution to docker cp failure: 1. Open the command window; 2. Execute "docker cp 312ee12b47a8:/opt/test.sh /mnt/www" command; 3. Execute "docker cp samba.1.x368e0ft61led8s2eu6ecxpmz:/opt/test" .sh /mnt/www” command.
- Docker 3757 2022-10-21 14:47:15
-
- What should I do if docker cannot pull?
- Solution to the problem that docker cannot pull: 1. Check your "docker root dir" when the docker service is on; 2. Close the docker service; 3. Create a new "root dir path"; 4. Edit "daemon.json" and add ""graph": "/docker/data""; 5. Execute "systemctl daemon-reload"; 6. Restart the docker service.
- Docker 6373 2022-10-21 14:36:02
-
- What are the internal components of docker?
- The internal components of docker are: 1. dockerclient, which is a general term. It can be a command line docker or a client that follows the docker api rules; 2. docker server server; 3. Docker image, which is a read-only Template is the basis for starting a container; 4. Registry, which is a mirror warehouse; 5. Docker container.
- Docker 4581 2022-10-21 14:27:23
-
- What to do if mysql is garbled in docker
- Solution to mysql garbled code in docker: 1. Create two directories, namely "/tmp/mysql/data" and "/tmp/mysql/conf"; 2. Write the "hmy.cnf" file; 3. Create a container; 4. Use "docker ps -a" to check whether the creation is successful; 5. Enter the mysql container; 6. Test the connection successfully.
- Docker 2465 2022-10-21 14:20:39
-
- What is the difference between pod and docker
- The difference between pod and docker: 1. Pod is the smallest deployment unit in k8s, and docker is an open source application container engine; 2. Pod is a multi-process design. A Pod can have multiple containers and can run multiple applications. Docker is a single-process design. One application runs in one container, and the daemon process can ensure that multiple containers are started.
- Docker 7363 2022-08-29 16:32:22
-
- What is the difference between docker and virtual machine
- The difference between docker and virtual machines: 1. Docker starts quickly at the second level, while virtual machines usually take several minutes to start; 2. Different performance losses, docker requires fewer resources; 3. Different isolation, docker belongs between processes The isolation is weak, while virtual machines can achieve system-level isolation.
- Docker 45218 2022-08-29 16:28:20
-
- Why does docker need port mapping?
- Because when the docker container is running, if the port mapping parameters are not specified, the network application services in the container cannot be accessed through the network outside the container, so the docker port mapping needs to be set; docker binds the host system through the port. Interface that allows non-local clients to access services running inside the container.
- Docker 4330 2022-08-23 17:52:37
-
- What engine is docker based on?
- docker is an advanced container engine based on LXC; LXC is the abbreviation of "Linux Container" and is a kernel virtualization technology that can provide lightweight virtualization to isolate processes and resources without providing an instruction interpretation mechanism and full Additional complexities of virtualization.
- Docker 3196 2022-08-23 17:46:19
-
- Does docker-compose need to be installed?
- "docker-compose" needs to be installed and is the official open source project of docker; "docker-compose" is a docker tool used to define a docker tool for running complex applications. This tool can be used to manage containers easily and efficiently, and can be managed through a configuration file Multiple docker containers.
- Docker 12632 2022-08-23 17:40:39
-
- Can docker delete logs?
- Docker can delete logs. Deletion method: 1. Use the "docker logs -f container id" command to view the container log, and use the cd command to enter the docker container directory; 2. Use the "cd container id() rm -rf container id.log" command to delete the file ending with ". file ending with "log"; 3. Use "docker restart container name or container id" to restart the file.
- Docker 13229 2022-08-17 16:42:46