If you’re anxious to start your journey with Docker, you might not want to spend the time getting the runtime engine ready to go on Linux. If you’re not familiar with the operating system, it can be daunting to type all of those commands. Fortunately, there’s a simple script you can use to install the Docker engine, and it only requires a few simple commands. Let me show you how to do it.
This process should work on most Linux distributions, but you will need a user with sudo privileges. How do you pull this off? Let me show you.
- Log into your Linux machine, and download the required script with the command curl -fsSL https://get.docker.com -o install-docker.sh.
- Next, give the new script executable permissions with chmod u+x install-docker.sh. Run the script with the command sudo ./install-docker.sh. This will install all of the necessary dependencies as well as the Docker runtime engine on your machine.
- The last thing you must do is add your user to the Docker group with the command sudo usermod -aG docker $USER.
Log out and log back in, and Docker is ready to go. You can now pull your first image and deploy your first container.
Docker doesn’t have to be a challenge from the jump. Use this simple method to install Docker, and you’ll be up and running in no time.
Subscribe to TechRepublic’s How To Make Tech Work on YouTube for all the latest tech advice for business pros from Jack Wallen.