CentOS 6.5.How to make a docker image of debian 7 wheezy
Editor to share with you CentOS 6.5 how to make a docker image of debian 7 wheezy. I hope you will get something after reading this article. Let's discuss it together.
The following are the steps for the terminal to execute the command. Just follow the steps.
[root@localhost admin] # debootstrap-- arch amd64 wheezy debian-wheezy http://mirrors.163.com/debian/
E: No such script: / usr/share/debootstrap/scripts/wheezy
[root @ localhost admin] # ln-s / usr/share/debootstrap/scripts/sid / usr/share/debootstrap/scripts/wheezy
[root @ localhost admin] # debootstrap-- arch amd64 wheezy debian-wheezy http://mirrors.163.com/debian/
It takes a long time to wait here.
[root @ localhost admin] # chown-R admin.admin debian-wheezy/
Su admin
[admin @ localhost ~] $cd debian-wheezy/
[admin @ localhost debian-wheezy] $tar-c. | docker import-debianwheezy-base
Eb32a915f53f174e3ce5ef4490c23ef32d5ab4b80a90066b2426db7237d7699d
[admin @ localhost debian-wheezy] $docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
Debianwheezy-base latest eb32a915f53f 28 seconds ago 216.8 MB
Ubuntu1204-base latest 43ad1b1116dd About an hour ago 172.7 MB
Centos63-bash latest d2ecedd2b5ed 2 hours ago 306.7 MB
[admin @ localhost debian-wheezy] $docker run-t-I debianwheezy-base / bin/bash
Root@4e0223444ef6:/# cat / etc/issue
Debian GNU/Linux 7\ n\ l
Root@4e0223444ef6:/# exit
Exit
[admin @ localhost debian-wheezy] $
[admin @ localhost debian-wheezy] $docker ps-a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
4e0223444ef6 debianwheezy-base:latest / bin/bash About a minute ago Exited (0) 33 seconds ago elegant_perlman
8053e2ca797b ubuntu1204-base:latest / bin/bash About an hour ago Exited (0) About an hour ago thirsty_thompson
14c9afaf2f06 centos63-bash:latest / bin/bash 2 hours ago Exited (0) 2 hours ago insane_lalande
[admin @ localhost debian-wheezy] $docker start 4e0223444ef6
4e0223444ef6
[admin @ localhost debian-wheezy] $docker attach 4e0223444ef6
Ls
Bin dev home lib64 mnt proc run selinux sys usr
Boot etc lib media opt root sbin srv tmp var
Root@4e0223444ef6:/# pwd
/
After reading this article, I believe you have a certain understanding of "CentOS 6.5 how to make a docker image of debian 7 wheezy". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!