Skip to content

Instantly share code, notes, and snippets.

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 vladbabii/a5844c9356ccbf2c79bb0d26cb498b78 to your computer and use it in GitHub Desktop.
Save vladbabii/a5844c9356ccbf2c79bb0d26cb498b78 to your computer and use it in GitHub Desktop.
install_docker_latest_on_ubuntu_with_root_user.sh
apt-get update
apt-get remove docker docker-engine docker.io
apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common \
-y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
apt-get update
apt-get install \
docker-ce \
-y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment