Skip to content

Instantly share code, notes, and snippets.

@tancou
Created April 28, 2020 16:46
Show Gist options
  • Save tancou/9df32306cec86bc0c7579687931922bf to your computer and use it in GitHub Desktop.
Save tancou/9df32306cec86bc0c7579687931922bf to your computer and use it in GitHub Desktop.
#!/bin/bash
apt update -y
apt install curl -y
apt install qemu-guest-agent -y
curl -sSL https://get.docker.com/ | sh
mkdir -p /etc/systemd/system/docker.service.d/
cat <<EOF > /etc/systemd/system/docker.service.d/mount_propagation_flags.conf
[Service]
MountFlags=shared
EOF
systemctl daemon-reload
systemctl restart docker.service
usermod -aG docker ${USER}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment