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

  • How to check how much memory docker takes up
    How to check how much memory docker takes up
    How to check how much memory docker takes up: 1. Use the docker stats command to check. 2. First find the container ID of the container through docker ps -a, then use ps -ef to find the process corresponding to the container, and then use commands such as top and pmap to view the memory occupied by the process.
    Docker 25659 2020-03-31 15:36:52
  • Why does docker kill sometimes fail to kill running containers?
    Why does docker kill sometimes fail to kill running containers?
    The reason why docker kill cannot kill the running container: the child process (stress) inside the container is in the D state, containerd does not report the container exit within the timeout period, and the system receives the Sigkill sent by Docker kill and thinks that it has killed the container. The actual container is still running.
    Docker 4792 2020-03-31 14:18:17
  • Docker cannot connect to the external network solution
    Docker cannot connect to the external network solution
    Docker cannot connect to the external network. Solution: 1. Restart the docker service. 2. Close the FirewallD service (systemctl stop firewalld.service). 3. Enable ip forwarding (change the value of net.ipv4.ip_forward to 1).
    Docker 10924 2020-03-31 11:50:50
  • In which directory are the docker container logs located?
    In which directory are the docker container logs located?
    The path of the log after docker is started is "/var/lib/docker/containers/container ID/container ID-json.log". We can use the docker logs command to directly view the container log.
    Docker 6873 2020-03-31 11:38:31
  • How to configure docker to support ipv4
    How to configure docker to support ipv4
    How to configure docker to support ipv4: open the sysctl.conf file, add "net.ipv4.ip_forward=1", and then use the "systemctl restart network" command to restart the network service.
    Docker 5265 2020-03-31 10:45:02
  • How do two different docker hosts access each other?
    How do two different docker hosts access each other?
    How to achieve mutual access between dockers in two different hosts: Add the network segment of the other party's IP in the routing table of the docker containers of the two hosts to achieve mutual access between dockers between different hosts.
    Docker 4900 2020-03-31 10:05:39
  • Can I specify the IP address of the docker container?
    Can I specify the IP address of the docker container?
    You can specify the ip of the docker container. Method to specify the docker container IP: 1. Use the "docker network create" command to create a network type. 2. Specify the IP used when starting the docker container.
    Docker 2364 2020-03-31 09:56:14
  • What are the warehouse sources of docker images?
    What are the warehouse sources of docker images?
    Commonly used warehouse sources for docker images: Domestic warehouses: NetEase (https://c.163yun.com/hub#/m/home/), Alibaba Cloud, Daoke Network, etc. Foreign warehouses: Docker Hub (https://hub.docker.com/), Quay, etc.
    Docker 5146 2020-03-31 09:49:13
  • How to read logs when something goes wrong with docker
    How to read logs when something goes wrong with docker
    How to view container application logs: 1. Use the "docker logs |" command to view the stdout/stderr logs of the specified container. 2. Use the console web interface to obtain the log information of a single container.
    Docker 3097 2020-03-31 09:48:36
  • How to copy host files to docker
    How to copy host files to docker
    How to copy the host's files to docker: Execute the "docker cp + file path to be copied + container name: copy to the corresponding path in the container" command in the host.
    Docker 4370 2020-03-30 13:59:07
  • How to check the time of docker container
    How to check the time of docker container
    How to check the time of the docker container: Enter the container and execute the date command to check the time of the current container. The date command can display the date in the specified format. Just typing date will display the current time in the default format.
    Docker 17400 2020-03-30 13:50:20
  • How to check which containers docker has
    How to check which containers docker has
    How to check which containers docker has: You can use the docker ps -a command to list all docker containers. Use the docker ps -a command to display all status containers, including those that are not running.
    Docker 28243 2020-03-30 13:41:22
  • How to assign an IP address to docker
    How to assign an IP address to docker
    ​Methods to assign a fixed IP address to docker: 1. Create a custom network, which can be created using the docker network create command. 2. Specify the network card and IP on the container. You can use the --network parameter to specify the network type when starting the container.
    Docker 4467 2020-03-30 13:18:24
  • How to remount a directory that is already running docker
    How to remount a directory that is already running docker
    How to remount the directory with already running docker: 1. First stop the running docker container, and then remount the directory by modifying the configuration file. 2. Remount the directory by submitting the existing container as a new image.
    Docker 16311 2020-03-30 11:08:09
  • How to copy images under docker
    How to copy images under docker
    How to copy images under docker: Execute "docker cp + container name: the path of the image to be copied in the container + the corresponding path to be copied to the host" in the host.
    Docker 3146 2020-03-30 10:30:42

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