Cannot change permissions of hostconfig.json and config.v2.json for container
Issue
- Unable to change the permissions of two
json
files inside/var/lib/docker/containers/container ID/
whenever any container is created. These files are :
/var/lib/docker/containers/<container-id>/config.v2.json
/var/lib/docker/containers/<container-id>/hostconfig.json
- If we change the permissions once, they get automatically changed if we
start/stop
the container or restart the docker service.
Environment
- Red Hat Enterprise Linux 7.3
- docker-1.12.6-28.git1398f24.el7.x86_64
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.