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 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 3317 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 3831 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 20370 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 3461 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 6291 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 4506 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 2375 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 7201 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 45140 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 4246 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 3135 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 12518 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 12938 2022-08-17 16:42:46
-
- Is the docker image transport layered?
- The transmission of docker images is layered; because the docker image is built in layers, the process of building the image is disassembled, the common points with other services are found, and it is formulated as a basic image. Each specification in the Dockerfile will create a new layer. This saves disk space, so the transfer of docker images is layered.
- Docker 2894 2022-08-17 16:33:49
-
- What does network mode in docker mean?
- The meaning of docker network mode: 1. Bridge mode, the default network driver model, will automatically configure its own network information when the docker container starts; 2. Host mode, breaks the network isolation between the Docker container and the host, directly Use the network environment of the host; 3. Overlay mode, which can connect multiple docker daemons or satisfy communication between cluster services; 4. none mode, which disables the network driver; 5. plugins mode, uses third-party network driver plug-ins.
- Docker 2940 2022-08-17 16:25:18