标签:lib dock enable k8s systemctl 系统 images ice ystemd
namespace -> docker 使用namespace来格里容器的运行环境,比如容器的文件系统、用户环境、进程下载镜像doecker pull
查看下载的镜像docker images
启动镜像docker start -p -it 镜像ID /bin/bash
删除镜像docker rmi 镜像ID
端口号映射docker -p 本地端口:容器端口
手动二进制安装docker:
1.下载二进制压缩包、解压后复制到/usr/bin
2.准备docker service文件
#scp /lib/systemd/system/docker/service /bin/systemd/system/docker.socket
/lib/systemd/system/containerd.service 172.31.6.102:/lib/systemd/system/
#systemctl unmask containerd
#systemctl unmask docker
#systemctl unmask docker.socket
#systemctl enable docker
#systemctl enable containerd
#systemctl start docker
#systemctl start containerd
/var/lib/docker #看公司需求,有些时候需要单独挂载一块数据盘,来单独存储容器数据
标签:lib dock enable k8s systemctl 系统 images ice ystemd
原文地址:https://blog.51cto.com/shitouweb/2501195