Skip to main content
  1. Documentation/

Docker installation

119 words·1 min
docker
Table of Contents

Install Docker
#

# Update the Package Repository
sudo apt update
# Install Prerequisite Packages
sudo apt install apt-transport-https ca-certificates curl software-properties-common -y
# Add GPG Key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# Add Docker Repository
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
# or sudo add-apt-repository "deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
# Specify Installation Source
apt-cache policy docker-ce
# Install Docker
sudo apt install docker-ce -y
# Check Docker Status
sudo systemctl status docker

Install docker-compose
#

sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose

docker-compose --version

Install Hugo
#

wget https://github.com/gohugoio/hugo/releases/download/v0.122.0/hugo_0.122.0_linux-amd64.deb
sudo dpkg -i hugo_0.122.0_linux-amd64.deb 
hugo version

Install CTOP
#

docker run --rm -ti   --name=ctop   --volume /var/run/docker.sock:/var/run/docker.sock:ro   quay.io/vektorlab/ctop:latest

Related

Kubernetes-minikube installation
226 words·2 mins
Kubernetes
k8s minikube+docker的安装 # 安装前准备 # Container 容器本地安装docker
50 Shades of Go
11898 words·56 mins
Golang
50 Shades of Go: Traps, Gotchas, and Common Mistakes for New Golang Devs # Traps, Gotchas, and Common Mistakes # level: beginner In most other languages that use braces you get to choose where you place them.
Centos8: Errors during downloading metadata for repository 'base'
87 words·1 min
Linux
Errors during downloading metadata for repository ‘base‘ # CentOS-8 - Base - mirrors.
内存对齐-fieldalignment
33 words·1 min
Golang
fieldalignment # Install
图解系列
34 words·1 min
Article
图解 # 图解IT技术,让技术更简单易懂。