In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
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!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.