• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

‘docker images’ command error – “Permission Denied”

By admin

The Problem

A regular user is not able list images using docker images command. Following error can be observed.

user01> docker images
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.27/images/json: dial unix /var/run/docker.sock: connect: permission denied

The Solution

User is not part of docker group and doesn’t have permissions to execute docker related commands.

Add regular user to docker group so that they would able to use docker commands.

[root@host-docker ~]# id user01
uid=1000(user01) gid=1000(user01) groups=1000(user01),10(wheel),983(docker)
[root@host-docker ~]#
[root@host-docker ~]# su - user01
Last login: Thu May 24 23:17:03 IST 2018 from example.com on pts/1

[user01@host-docker ~]$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
user01 latest ab15b83d00ea 32 hours ago 1.29GB
test_web latest 07d0c8441153 6 days ago 234MB

Filed Under: CentOS/RHEL 7, DevOps, Docker, Linux

Some more articles you might also be interested in …

  1. Time goes out of sync on a node running CentOS/RHEL 7
  2. CentOS / RHEL 5 : How to Boot into Rescue Mode
  3. mdadm Command Shows State : active, degraded
  4. CentOS / RHEL 7 : How to extract initramfs image and edit/view it
  5. CentOS / RHEL 7 : How to modify the kernel command line
  6. How to re-create the yum cache (force a fetch of the cache data) from enabled repositories in CentOS/RHEL
  7. How to use “btrfs scrub” command to manage scrubbing on Btrfs file systems
  8. CentOS / RHEL : Installing and Configuring ASMLib
  9. Running repairs on XFS Filesystems
  10. CentOS / RHEL 7 : Configuring static IP adress using network interface configuration files

You May Also Like

Primary Sidebar

Recent Posts

  • Oracle Database – Configuring Secure Application Roles
  • Extend rule sets by using factors in Oracle Database Vault
  • What are Command Rules in oracle Database
  • Using Rule Sets in Oracle Database Vault
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary