Install Docker-CE on Ubuntu 18.04

apt update
apt install -y apt-transport-https ca-certificates curl software-properties-common

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
apt-key fingerprint 0EBFCD88

cat <<"EOF" >>/etc/apt/sources.list.d/docker.list
deb [arch={{ARCH}}] https://download.docker.com/linux/ubuntu {{RELEASE}} stable
# deb-src [arch={{ARCH}}] https://download.docker.com/linux/ubuntu {{RELEASE}} stable
EOF
sed -ri /etc/apt/sources.list.d/docker.list \
  -e "s/\{\{ARCH\}\}/$(dpkg --print-architecture)/g" \
  -e "s/\{\{RELEASE\}\}/$(lsb_release -cs)/g"

apt update
apt install -y docker-ce docker-compose

usermod -aG docker ${USER}