* Create DigitalOcean Account
You can use my referral you will get $100 free usage for 3 months.
By clicking below.
* Create a Droplet
* Use the following Configuration for Droplet.
You have to open image and zoom
In case of ssh key generation
Click on New SSH Key as shown in above image.
And Run these commands in Local System.
$ ssh-keygen
$ cat /c/Users/<Your User>/.ssh/docker_rsa
* Droplet after Creating
In you Project, you will be able to see one droplet.
Where you will get the public IP of that droplet and we will access that using that.
* Login and update Droplet
$ ssh -i docker_rsa root@165.22.212.229
$ sudo apt-get update
After updating kernal, installing docker to the droplet.
Below is specific to Ubuntu
$ sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
Then we need to install Docker.
$ echo \
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
$ sudo apt-get update && sudo apt-get install docker-ce docker-ce-cli containerd.io
Verify Docker
To Verify Docker is running.
$ systemctl status docker
Hurray!! you are inside your first Droplet....
Top comments (5)
Some steps about installing
docker
are missed.After running
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
command, it should runecho \
and"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update && sudo apt-get install docker-ce docker-ce-cli containerd.io
to complete Docker installation.More details about above Docker installation is available on official Docker doc.
Thanks @peter279k , Going to update this.
Or you can also check my docker_installer.sh shell script to complete Docker installation on Ubuntu 18.04 conveniently :).
Awesome In Depth Guide !
Thanks :)