标签:sys image 注意 rom ima etc base top bash
1 制作本地环境镜像cd ~
tar --numeric-owner --exclude=/proc --exclude=/sys --exclude=/media --exclude=/root/centos7-base.tar -cvf centos7-base.tar /注意:
/media 为本地挂载的OS image,排除
cat centos7-base.tar | docker import - centos7-base
systemctl stop docker
systemctl start docker
否则运行docker run时
报错: Error response from daemon: docker-containerd-shim not installed on system
docker run -i -t centos7-base cat /etc/redhat-release
启动一个deamon进程
docker run -itd ubuntu:14.04 /bin/bash
进入docker 容器
docker attach 44fc0f0582d9
标签:sys image 注意 rom ima etc base top bash
原文地址:https://blog.51cto.com/12408798/2380563