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

  • What should I do if I cannot access nginx after docker starts it?
    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
    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
    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?
    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
    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
    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
    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
    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
    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
    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
    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?
    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
    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
    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
    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

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