how to install docker as root ?
hi everyone , i would love to install docker in a cloud config file but i cant pass to root ! by the way i have first to set a password for my VM because i cant access my ubuntu vm if i dont here is my code
#cloud-config
password: mypassword
chpasswd: { expire: False }
ssh_pwauth: True
runcmd:
- sudo -s
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list
apt-get update
apt-get install -y docker-engine
usermod -aG docker ubuntu