current location:Home > Technical Articles > Operation and Maintenance > Docker

  • What to do if there is an error in docker mapping port
    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?
    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?
    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
    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?
    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?
    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
    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
    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
    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?
    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?
    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?
    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?
    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?
    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?
    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

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28