文章目录
将系统打包
tar –numeric-owner –exclude=/proc –exclude=/sys -cvf centos7-base.tar /
docker import
docker import centos7-base.tar centos7:temp
$ docker images |grep centos7
centos7 temp 4110a0f2770e 23 seconds ago 1.828 GB
tar –numeric-owner –exclude=/proc –exclude=/sys -cvf centos7-base.tar /
docker import centos7-base.tar centos7:temp
$ docker images |grep centos7
centos7 temp 4110a0f2770e 23 seconds ago 1.828 GB