The software described in this documentation is either no longer supported or is in extended support.
Oracle recommends that you upgrade to a current supported release.

3.2 Enabling Non-root Users to Run Docker Commands


Users who can run Docker commands have effective root control of the system. Only grant this privilege to trusted users.

The following procedure applies to version 1.5 and later of Docker.

To enable users other than root and users with sudo access to be able to run Docker commands:

  1. Create the docker group:

    # groupadd docker
  2. Restart the docker service:

    # service docker restart

    The UNIX socket /var/run/docker.sock is now readable and writable by members of the docker group.

  3. Add the users that should have Docker access to the docker group:

    # usermod -a -G docker user1