# NOT FOR SHELL SCRIPT, but rather just for quick copy paste # this is a copy-paste version with defaults of the full shell script docker-xenial.sh which is below this one in gist. apt-get -y install apt-transport-https ca-certificates curl && \ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - && \ add-apt-repository "deb [arch=arm64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" && \ apt-get update -q && \ apt-get install -y -q docker-ce && \ printf '{ "userns-remap" : "default" , "storage-driver" : "overlay2" }' > /etc/docker/daemon.json && \ systemctl restart docker.service