install docker on ubuntu 18.04
# First check if there are any updates
sudo apt-get update
# allow apt to use repositories over the HTTPS protocol
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
# Add docker's official GPG key by executing following command
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# Add docker's repositories
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
# update and install docker
sudo apt-get install docker-ce docker-ce-cli containerd.io
3.5
2
sudo apt update
Thank you!
2
0
4.67
3
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Thank you!
3
0
0
0
sudo apt install docker-ce
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04
Thank you!
0
0
0
0
sudo apt install docker-ce
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04
Thank you!
0
0
3.8
5
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Thank you!
5
0
0
5
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
Thank you!
5
0
0
0
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
Thank you!
0
0
Are there any code examples left?
New code examples in category Shell/Bash
-
Shell/Bash 2022-03-27 22:30:33 wise highlight ubuntu
-
Shell/Bash 2022-03-27 22:25:19 how to send a pull request in git
-
Shell/Bash 2022-03-27 21:55:06 how to open terminal in sublime text ubuntu
-
Shell/Bash 2022-03-27 21:25:19 how to switch branch
-
Shell/Bash 2022-03-27 21:20:25 python
-
Shell/Bash 2022-03-27 21:20:04 set user as admin gitlab
-
Shell/Bash 2022-03-27 21:10:09 apache2 mod_jk proxy to tomcat connector
-
Shell/Bash 2022-03-27 20:35:12 chown
-
Shell/Bash 2022-03-27 20:15:08 awk last match