Hot search terms: 360 Security Guard Office365 360 browser WPS Office iQiyi Huawei Cloud Market Tencent Cloud Store
The following is a method to solve the problem that the space where Docker is stored is too small, causing Docker to run slowly. Users who have encountered this problem can use this method to solve it.
Solution:
The first is to reinstall the system, which is too inhumane and should be ignored. . . Next time you deploy the Docker host, you must partition it carefully.
The second is to change the default storage path of Docker.
I checked the manual and found: -g, --graph="/var/lib/docker" sets the Docker runtime root directory
Use the --graph parameter: docker --graph=/opt/docker -d, the /opt/docker directory (0700) will be automatically generated, and docker related files will be created in this directory
The original image and container can no longer be found because the path has been changed (the original image is in /var/lib/docker/devicemapper/devicemapper/{data, metadata})
Docker's configuration file can set most of the background process parameters, but the storage locations are inconsistent in various operating systems.
The location in ubuntu is: /etc/default/docker
The location in centos is: /etc/sysconfig/docker
I'm using CentOS 7, so just change vim /etc/sysconfig/docker to
OPTIONS=--graph=“/home/lib/docker” --selinux-enabled -H fd://
Then use service docker start to restart Docker and the path will be changed to /home/lib/docker
How to adjust the spacing of arc text in coreldraw? -How to adjust the spacing of arc text in coreldraw
How to draw arrows in coreldraw? -Coreldraw method of drawing arrows
How to turn off the default browser protection in QQ Browser How to turn off the default browser protection in QQ Browser
How to upgrade QQ Browser How to upgrade QQ Browser
How to crop pictures in coreldraw? -Coreldraw picture cropping operation process
What to do if there is no sound after reinstalling the computer system - Driver Wizard Tutorial
How to practice typing with Kingsoft Typing Guide - How to practice typing with Kingsoft Typing Guide
How to upgrade the bootcamp driver? How to upgrade the bootcamp driver
How to change QQ music skin? -QQ music skin change method
Driver President Download-How to solve the problem when downloading driver software is very slow