0% found this document useful (0 votes)
55 views2 pages

Installation Docker - Ubuntu

This document provides steps to install and configure Docker on an Ubuntu server. It lists Ubuntu version prerequisites and provides a step-by-step process to install Docker, verify the installation by running a test container, and add the current user to the Docker group for permission to use it.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views2 pages

Installation Docker - Ubuntu

This document provides steps to install and configure Docker on an Ubuntu server. It lists Ubuntu version prerequisites and provides a step-by-step process to install Docker, verify the installation by running a test container, and add the current user to the Docker group for permission to use it.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

=================================================

=== CONFIGURATION DOCKER - UBUNTU LIVE SERVER ===


=================================================
[On this configuration I'm using VMware Virtual]
~
~
~ PREREQUISITES ~
OS requirement : [To install Docker Engine, you need the 64-bit version of one
these Ubuntu versions:
= Ubuntu Jammy 22.04 (LTS)
= Ubuntu Impish 21.10
= Ubuntu Focal 20.04 (LTS)
= Ubuntu Bionic 18.04 (LTS)
===================================================================================
==================
===================================================================================
==================
STEP BY STEP!
-
rgx@rgxserver:~$ sudo apt-get update
rgx@rgxserver:~$ sudo apt-get install \
> ca-certificates \
> curl \
> gnupg \
> lsb-release
rgx@rgxserver:~$ sudo mkdir -p /etc/apt/keyrings
rgx@rgxserver:~$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg
--dearmor -o /etc/apt/keyrings/docker.gpg
rgx@rgxserver:~$ echo \
rgx@rgxserver:~$ "deb [arch=$(dpkg --print-architecture)
signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
rgx@rgxserver:~$ $(lsb_release -cs) stable" | sudo tee
/etc/apt/sources.list.d/docker.list > /dev/null
rgx@rgxserver:~$ sudo apt-get update
rgx@rgxserver:~$ sudo apt-get install docker-ce docker-ce-cli containerd.io docker-
compose-plugin
rgx@rgxserver:~$ sudo docker run hello-world
[Output]
Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:


1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/

For more examples and ideas, visit:


https://docs.docker.com/get-started/
Permission user to use Docker:
rgx@rgxserver:~$ sudo groupadd docker
rgx@rgxserver:~$ sudo usermod -aG docker rgx
rgx@rgxserver:~$ su - rgx
rgx@rgxserver:~$ id -nG

You might also like