Docker is an application that allows you to carve up a running Linux system into a small container, each of its own separate application or services. These containers are designed to be small and portable which makes it easier to be shipped from one place to another Docker.
In this tutorial, you will install Docker Engine Community Edition on Ubuntu 22.04 LTS. Installing Docker on Linux is straightforward than another platform since it’s just another program running natively.
Prerequistes
To follow along in this tutorial, you will need the following:
- EBOX-58E (Intel Solution)
- Ubuntu 22.04 LTS
Install Docker on Ubuntu
Step 1 – Installing Docker
The Docker installation package is available in the official Ubuntu repository and to ensure that we get the latest version of docker. We will need to install Docker Engine from the official repository.
The first step is to update the existing pages by running the following command.
$ sudo apt-get update
Next, we will need to install a few prerequisite packages.
$ sudo apt install \
apt-transport-https \
ca-certificates \
curl software-properties-common
Then we need add the GPG key for the official Docker repository to your host computer.
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Add the Docker repository APT source.2
$ sudo add-apt-repository "deb [arch=amd64]
https://download.docker.com/linux/ubuntu focal stable"
Next, we will need to do another apt update to make sure we get the Docker packages.
$ sudo apt-get update
And finally, let’s install Docker and Docker Compose
$ sudo apt install docker-ce docker-compose
Step 2 – Executing Docker Command without Sudo
By default, Docker commands can only be run as root or by an user in the docker group. It is highly recommended to add your own username to the docker group by using the following command.
$ sudo usermod -aG docker {USER}
Step 3 – Hello World
To make sure that everything working, we will need to pull an image hello-world from the Docker Hub Repository by typing the following
$ sudo docker run hello-world
If the image does not yet exist on your local host machine, it will automatically pull the image an run the cod
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
0e03bdcc26d7: Pull complete
Digest: sha256:6a65f928fb91fcfbc963f7aa6d57c8eeb426ad9a20c7ee045538ef34847f44f1
Status: Downloaded newer image for hello-world:latest
Hello from Docker!
This message shows that your installation appears to be working correctly.
You have successfully setup Docker and ran your first application.
Continue Reading:
- How to install Ubuntu on EBOX-58E
- 在 Ubuntu 上運行 Linux Containers
- 無需密碼在 Linux 上執行 sudo 命令
- EBOX Mini PC 安裝 Ubuntu 12.04 非 PAE 指南
主要特點 EBOX-58E:
- Intel® Braswell x5-E8000 1.04GHz 四核心處理器
- SO-DIMM, DDR3L‐1600MHz up to 8GB
- 2S / 4U / 2GLAN / Mic-in / Line-out / HDMI / SATA / M.2 / mSD
- Operation Temperature: 0°C ~ +60°C
- RS-232 / RS-485 / TTL(Optional)
- DIN Rail 滑軌支架 (選配)
- PXE 網路開機
- AMI UEFI BIOS (可切換 Legacy 模式)
- TPM
- Auto Power On 自動開機
- 支援 100 x 100mm VESA
如需更多資訊和樣品需求,請寫信至 info@icop.com.tw,或致電離您最近的 ICOP Branch,或聯繫我們的 Worldwide Official Distributor.