In the past, every time I needed to install docker on a new Linux server, I'd
go to the official documentation page
and follow the steps for my specific distro, which is usually Debian. There
are several installation methods, and I'd normally go with the
`apt repository` one.
Join me in discord (Linkarzu)
/ discord
YouTube Memberships
/ @linkarzu
Start your setapp 7 day free trial (my affiliate link)
https://setapp.sjv.io/QjKK1a
Start your 1password 14 day free trial (my affiliate link)
https://www.dpbolvw.net/click-1013272...
If you find this video helpful and want to support me
https://ko-fi.com/linkarzu
This means setting up the repo, adding the GPG key, installing docker, etc.
Not difficult, but you still have to go through the documentation to find
the right commands and after installing docker a few times, it gets kinda
tedious.
In the official documentation, there's also a method at the end that reads
`Use a convenience script`, which is what will be covered in this guide.
This guide applies if you'll install Docker Engine on a linux server,
using one of the supported distros.
This is not`a guide to install `Docker desktop` on either Linux, Windows or Mac.
Link to my blogpost
https://linkarzu.com/posts/docker/ins...
Alternate between the last 2 tmux sessions or neovim buffers, blazingly fast, with a keymap
• Alternate between the last 2 tmux sessions...
08 - What is tmux and how to use it in macOS
• 08 - What is tmux and how to use it in macOS
Install Windows 11 over the network with netboot.xyz, automated install with unattend.xml
• Install Windows 11 over the network with n...
What distro am I using?
I'm using `Debian`, but these commands should work for any debian based
distro, like the most popular one Ubuntu
All in one script
I created this script that does the following:
1 - Make sure docker is NOT already installed
2 - Check you have sudo permissions
3 - Show you the versions and ask you which one you want to install
This is useful if for example you want to install a specific docker
version so that it matches the rest of your docker hosts in your swarm
cluster
4 - Add your user to the `docker` group so you can run docker commands
without sudo
5 - Execute the docker convenience script
If you want to understand better what the script does, go inspect it in github
0:00 - What is the convenience script
0:47 - Not docker desktop, but instead to install docker on Linux
0:58 - Deploy new VM
1:41 - Distro I am using
1:55 - OPTION1 All in one script
2:57 - Install specific docker version
4:50 - RECOMMENDATION switch between tmux sessions
5:00 - RECOMMENDATION tmux
5:50 - Install latest docker version
6:00 - Revert VM snapshot
7:15 - Cannot run script if docker installed
7:30 - Configure sudo access
8:37 - OPTION2 run convenience script step by step
9:11 - RECOMMENDATION install windows 11 over the network
9:39 - outro