How to find the docker configuration file

王林
Release: 2020-05-21 11:16:54
Original
8300 people have browsed it

How to find the docker configuration file

CentOS 7 uses systemd to manage the docker process. So if we want to know the file location of docker, we can check the configuration of systemd.

Use the command to view the systemd configuration of docker:

cat /usr/lib/systemd/system/docker.service
Copy after login

As shown below:

How to find the docker configuration file

You can see that the configuration file started by systemd is configured by the environment The variables are obtained, and the environment variables are in /etc/sysconfig/docker, /etc/sysconfig/docker-storage, /etc/sysconfig/docker-network, and can be viewed in sequence.

Recommended tutorial:docker tutorial

The above is the detailed content of How to find the docker configuration file. 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
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!