Skip to content

Instantly share code, notes, and snippets.

@morjuax
Last active February 4, 2020 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save morjuax/2e62f2622814564865fc797733bc4f87 to your computer and use it in GitHub Desktop.
Save morjuax/2e62f2622814564865fc797733bc4f87 to your computer and use it in GitHub Desktop.
Install Docker in ubuntu

update repositories linux

sudo apt-get update

Install utilities

sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common

Install gpg

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

verify apt-key fingerprint

sudo apt-key fingerprint 0EBFCD88

add Repo

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

Update again

sudo apt-get update

Install docker

sudo apt-get install docker-ce docker-ce-cli containerd.io

know username linux

whoami

add user to group docker

sudo usermod -aG docker name_out_in_whoami

test Docker Installed

docker run hello-world

REF Homepage docker

https://docs.docker.com/install/linux/docker-ce/ubuntu/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment