Park Media Group AS - Wiki
Attachments
History
Blame
View Source
A - Z
Changelog
Documentation
About An Otter Wiki
Toggle dark mode
Login
Home
Page Index
Home
Software
Streaming
vMix
Videoproduksjon
Teknikk
Green-Screen
Linux
Docker
32187c
Commit
32187c
2025-08-21 08:39:51
Kevin Jung Park
: -/-
linux/docker.md
..
@@ 1,63 1,1 @@
-
# Docker
-
## Introduction
-
In this document, you will learn to install the latest and official Docker on your server.
-
<br/>
-
-
## Installation
-
**Uninstall old versions**
-
-
> [!IMPORTANT]
-
> There are many unofficial packages, including:
-
> - docker.io
-
> - docker-compose
-
> - docker-compose-v2
-
> - docker-doc
-
> - podman-docker
-
<br/>
-
-
Run this command to uninstall older pacakges:
-
```bash
-
for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done
-
```
-
<br/>
-
-
**Install using the apt repository**
-
-
Set up Docker repository, copy and run this hole command:
-
```bash
-
# Add Docker's official GPG key:
-
sudo apt-get update
-
sudo apt-get install ca-certificates curl
-
sudo install -m 0755 -d /etc/apt/keyrings
-
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
-
sudo chmod a+r /etc/apt/keyrings/docker.asc
-
-
# Add the repository to Apt sources:
-
echo \
-
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
-
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
-
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
-
sudo apt-get update
-
```
-
<br/>
-
-
**Install Docker packages**
-
```bash
-
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
-
```
-
<br/>
-
-
**Start docker and test**
-
-
This command downloads a test image and runs it in a container. When the container runs, it prints a confirmation message and exits.
-
```bash
-
sudo service docker start
-
sudo docker run hello-world
-
```
-
<br/>
-
-
:::success
-
# Installation completed!
-
You have installed and started Docker successfully.
-
:::
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9