自制基于ubuntu16.04的最小docker镜像
参考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
镜像大小230M
--------------------
:~# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
xenial latest 75f64e754992 About an hour ago 230MB
相关推荐
王道革 2020-11-25
魅惑青花瓷 2020-11-11
lihongtai 2020-11-09
TaoTaoFu 2020-11-06
liaochaowu 2020-11-16
ChlatZed 2020-11-11
xysoul 2020-11-03
changecan 2020-09-22
newisI 2020-09-01
链块学院 2020-09-09
lihy0 2020-09-07
fearlessxjdx 2020-09-04
ChlatZed 2020-08-23
changecan 2020-11-19
bwyyziq 2020-11-22
pigsmall 2020-11-19
helloWorldAndYou 2020-11-16
nginxs 2020-11-14
红石丶 2020-11-13