You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
557 B
15 lines
557 B
4 years ago
|
# Docker install
|
||
|
|
||
|
set -x
|
||
|
|
||
|
apt-get remove docker docker-engine docker.io containerd runc -y
|
||
|
apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -y
|
||
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
|
||
|
apt-key fingerprint 0EBFCD88
|
||
|
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
|
||
|
apt-get update
|
||
|
apt-get install docker-ce docker-ce-cli containerd.io docker-compose -y
|
||
|
systemctl enable docker
|
||
|
systemctl start docker
|
||
|
usermod -aG docker ${USER}
|