In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Tar backup system
Sudo tar cvpzf backup.tgz-exclude=/proc-exclude=/mnt-exclude=/sys-exclude=/backup.tgz /
For more linux backup methods, please see https://www.jb51.net/article/151167.htm
Write dockerflie
Create a new directory Dockerfile, and edit the Dockerfile script under the Dockerfile directory, as follows:
FROM scratchCOPY rootfs / RUN chmod / usr/bin/sudoRUN chmod / usr/bin/passwdRUN chmod / bin/suRUN chmod / bin/pingRUN chmod / bin/mountRUN chmod / bin/umountUSER rootWORKDIR / home/root
Change the user name and password according to the situation
Import the backed up system files as docker images
1. Create a new directory backup under the Dockerfile directory
two。 Extract the backed up tar file to the backup directory: tar xvpfz backup.tgz
3.sudo docker build-t centos/centos:7.0.
Summary
The above is the detailed explanation of the docker backup linux system command introduced by the editor to you. I hope it will be helpful to you. If you have any questions, please leave a message for me, and the editor will reply to you in time. Thank you very much for your support to the website!
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.