本文在Debian下完成,用于笔记:
- 制作base镜像
- 安装debootstrap:
- 安装额外的软件包并制作rootfs:
- 打包镜像并导入到docker:
- 上传至docker.io
- 注册账号.
- 创建空间.
- 登陆到Docker Hub:
- 创建标签:
- 上传镜像:
ppt.cc/fVjECx ppt.cc/fEnHsx ppt.cc/fRZTnx ppt.cc/fSZ3cx ppt.cc/fLOuCx ppt.cc/fE9Nux ppt.cc/fL5Kyx ppt.cc/fIr1ax ppt.cc/f71Yqx tecmint.com linuxcool.com linux.die.net linux.it.net.cn ostechnix.com unix.com ubuntugeek.com runoob.com man.linuxde.net v.gd/4A2G5b v.gd/VBg0IE v.gd/kVkm7n v.gd/jCKP1G linuxprobe.com linuxtechi.com howtoforge.com linuxstory.org systutorials.com ghacks.net linuxopsys.com v.gd/2P9wTx v.gd/FtfpqE v.gd/eMfHsm v.gd/Ub7mqv v.gd/RReVk0 v.gd/vS3uTI v.gd/4Zxmba v.gd/1BnFph
1
|
apt-get install debootstrap
|
1
|
debootstrap --include=openssh-server --arch i386 wheezy debian-wheezy http://httpredir.debian.org/debian
|
1
|
tar -c . |docker import - debian-wheezy-i386
|
1
|
vicer/debian-wheezy-i386
|
1
|
docker login
|
1
2
|
#docker tag <imageID> <namespace>/<image name>:<tag>
docker tag debian-wheezy-i386 vicer/debian-wheezy-i386
|
1
2
|
#docker push <namespace>/<image name>
docker push vicer/debian-wheezy-i386
|
No comments:
Post a Comment