In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-24 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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.