Skip to content

Instantly share code, notes, and snippets.

@kaitoii11
Last active October 21, 2017 11:00
Show Gist options
  • Save kaitoii11/e08fe0bb67b37c8e730c490c4f7e7cf5 to your computer and use it in GitHub Desktop.
Save kaitoii11/e08fe0bb67b37c8e730c490c4f7e7cf5 to your computer and use it in GitHub Desktop.
Install docker on CentOS 7

How to install and run docker as general user

Install docker

$ sudo yum install docker

Add user to group dockerroot

$ sudo gpasswd -a $USER dockerroot

Change owner of Docker Socker

$ sudo chown root:dockerroot /var/run/docker.sock

Run sample

$ docker run hello-world
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment