How to check the data path of docker

Release: 2020-03-14 14:47:46
Original
10720 people have browsed it

How to check the data path of docker

The default Docker storage location is:/var/lib/docker

Command to view the specific location

docker info | grep "Docker Root Dir"
Copy after login

The specific docker container storage location:

docker ps -a

docker inspect container id | grep "volumes" //View data directory_data

docker inspect container id | grep "ResolvConfPath" //View docker container startup Configuration file directory

Modify the storage location:

The simplest way is to mount the partition to this directory. Since there is data in the data disk, modify the storage path of the image and container to achieve the purpose. This is achieved through soft connections.

For more related tutorials, please pay attention to the docker tutorial column on the PHP Chinese website.

The above is the detailed content of How to check the data path of docker. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!