Cannot change permissions of hostconfig.json and config.v2.json for container

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content