In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "docker installation and startup method". In daily operation, I believe many people have doubts about docker installation and startup method. Xiaobian consulted all kinds of materials and sorted out simple and easy operation methods. I hope to help you answer the doubts of "docker installation and startup method"! Next, please follow the small series to learn together!
1, specify yum source
rpm -Uvh http://ftp.riken.jp/Linux/fedora/epel/6Server/x86_64/epel-release-6-8.noarch.rpm
2. Install Docker
yum install -y docker-io
If yum does not allow installation modification of the specified version of/usr/bin/yum python 2.6
3, Boot self-start and start Docker
service docker start
chkconfig docker on Boot Self-Start
chkconfig docker -list
error: docker dead but pid file exists
view the log
tail -100 /var/log/docker
vi /etc/fstab
The reason is that there is no mount, so add a line at the bottom of the fstab file.
none /sys/fs/cgroup cgroup defaults 0 0
OK, it's done!
start
Service docker start
Service docker status
Docker search mysql See how many mirrors there are
docker pull Pull mirror locally
Docker images #View all images
Docker ps -a #View all containers
Docker ps View all running containers
docker run --rm -ti centos /bin/bash Create a container rm Delete container on exit
sudo docker run -i -t centos /bin/bash Create container, container status becomes exit after exiting, so far I can't find how to restart
docker exec -it docker name/bin/bash
At this point, the study of "docker installation and startup method" is over, I hope to solve everyone's doubts. Theory and practice can better match to help everyone learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!
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.