In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Summary of common operation and maintenance commands in docker:
In centos, you usually start and manage docker through systemd:
1. Start docker:sudo systemctl start docker2. Close docker:sudo systemctl stop docker3. Docker bootstrap: sudo systemctl enable docker4. View the docker log: journalctl-u docker.service or less / var/log/messages | grep Docker5. Check the service running status: systemctl status docker.service6. Systemd starts docker.service logic: cat / usr/lib/systemd/system/docker.service7. Docker data storage directory: tree-L 1 / var/lib/docker8. Delete the docker data storage directory: rm-rf / var/lib/docker/ or docker system prune-an or docker volume rm $(docker volume ls-Q) delete all volumes 9. Check the disk space occupied by docker: cd / var/lib/docker & & du-sh * or docker system df10. Docker disk mount information: mount | grep overlay211. Docker configuration information: ls / etc/docker12. Understand the id related information of processes inside and outside the container: inside the container: docker exec etcd0 ps-ef outside the container: docker top etcd0 associated pid information pstree-pl | grep docker13. Delete all containers: docker rm-f `docker ps-a-q`14. Run a container: docker run-it-d-p 6379-name mx-redis mx/redis:1.0
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.