安装 docker
安装
参考
命令
# 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 "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
非 root 用户使用 docker
参考
命令
sudo groupadd docker
sudo gpasswd -a ${USER} docker
sudo systemctl restart docker
sudo chmod a+rw /var/run/docker.sock
常用命令
Portainer 管理工具
参考
docker安装 portainer-ce(中文版)
NAS上最强Docker管理神器Portainer部署安装以及汉化教程(2023年最新版本)
windows 10 家庭版安装Docker和portainer汉化版
命令
docker pull 6053537/portainer-ce
docker volume create portainer_data
docker run -d --name portainer_cn -p 10101:9000 --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_cn_data:/data 6053537/portainer-ce
标签:基操,sudo,apt,etc,ce,portainer,docker
From: https://www.cnblogs.com/bibleghost/p/18299680