将本地系统做成docker镜像

文章目录

将系统打包

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
    原文作者:Loong Tu
    原文地址: https://blog.csdn.net/u011354817/article/details/104074188
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞