Docker Install Ubuntu Script

Docker Installation Ubuntu Shell Script

To automatically install Docker on Ubuntu run:

wget -O - https://raw.githubusercontent.com/proars/Docker-Install-Ubuntu-Script/main/docker_install.sh | bash

Or create a new file setup.sh with below given code and run it:

#!/bin/bash
sudo apt-get -y remove docker docker-engine docker.io containerd runc
sudo apt-get update
sudo apt-get install -y ca-certificates curl gnupg lsb-release curl
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo chmod a+r /etc/apt/keyrings/docker.gpg
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin

Verify Your Docker Installation

To confirm that your Docker installation is successful, run the hello-world image by executing the following command:

sudo service docker start
sudo docker run hello-world

This command pulls a test image and runs it within a container. Once the container executes, it displays a confirmation message and then terminates.

Congratulations! You have successfully installed and launched the Docker Engine.

GitHub

   

If you like what you are reading, please:

Buy me a coffeeBuy me a coffee

arstech

Notable Replies

  1. Avatar for aivon aivon says:

    <a href=”https://subwaysurfersgame.cc/?s=review”> Subway Surfers is a ultimate endless runner game! Dash through vibrant cityscapes, dodge trains, collect coins, and unlock exciting characters and hoverboards.
    This game provides a rich character and skateboard system. Players can unlock different characters, such as the default character Jake, Tricky, Fresh, etc. Each character has a unique charm. At the same time, the skateboard can not only provide additional protection, but also increase the speed, making the game more interesting for players. There are also abundant props in the game, such as magnets, double points, super running shoes and jetpacks, to help players get more rewards and break through obstacles during parkour.

    Subway Surfers: https://subwaysurfersgame.cc/
    <a href=”https://blockblastonline.xyz/?s=review”> Block Blast is a puzzle game based on block elimination and explosion mechanics. The core gameplay involves arranging and exploding blocks to clear obstacles and achieve high scores. Similar games may have different variations or platform support, but they generally revolve around clearing blocks by manipulating them.

    Block Blast Online: https://blockblastonline.xyz/

Continue the discussion at forum.arstech.net

Participants

Avatar for aivon Avatar for arstech