赞
踩
sudo apt update
sudo apt install apt-transport-https ca-certificates curl gnupg lsb-release
curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io
sudo systemctl start docker
systemctl status docker
- ● docker.service - Docker Application Container Engine
- Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
- Active: active (running) since Wed 2024-02-21 09:13:16 CST; 54s ago
- TriggeredBy: ● docker.socket
- Docs: https://docs.docker.com
- Main PID: 3700958 (dockerd)
- Tasks: 8
- Memory: 30.8M
- CPU: 362ms
- CGroup: /system.slice/docker.service
- └─3700958 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
su root
- sudo groupadd docker #添加用户组
- sudo gpasswd -a username docker #将当前用户添加至用户组
- newgrp docker #更新用户组
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。