Just do it follow the next commands, I have tried it, it's available.
Set repository
step1: update APT package index
$ sudo apt-get update
step2: install apt dependency packet to get repository by HTTPS
$ sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
step3: add official GPG secret key of Docker
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
step4: set stable repository by the follow instruction
$ sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
bionic \
stable"
Install Docker Engine-Community
step1: update APT package index
$ sudo apt-get update
step2: install the lastest version of Docker Engine-Community & containerd
$ sudo apt-get install docker-ce docker-ce-cli containerd.io
Test
you can try it by the follow instruction
$ sudo docker run hello-world
OR
$ sudo docker ps
configure running docker without sudo
step1: add docker group
$ sudo groupadd docker
step2: add current user to docker group
$ sudo gpasswd -a ${USER} docker
step3: restart docker service
$ sudo service docker restart
step4: check the docker group to verify user is in it
$ cat /etc/group | grep docker
step5: reboot to take effect
$ sudo reboot