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:
-
- 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?
- 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: 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?
- 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: 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 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?
- 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?
- 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 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 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 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: 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
- 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 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: 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