标签:tar run import ubuntu created follow pos docker image
参考docker官方:https://docs.docker.com/develop/develop-images/baseimages/$ sudo apt-get install debootstrap
$ sudo debootstrap xenial xenial > /dev/null
$ sudo tar -C xenial -c . | docker import - xenial
$ docker images
$ docker run xenial cat /etc/lsb-release
--------------------
root@Ubunt-16:~# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
xenial latest 75f64e754992 About an hour ago 230MB
标签:tar run import ubuntu created follow pos docker image
原文地址:https://blog.51cto.com/dldxzjr/2481905