简体   繁体   中英

Extracting Docker Container to an bootable hdd disk

I have an docker container. I would like to extract the filesystem and put it on a ssd. At the end I want to put the ssd into another computer, so the computer can boot from the ssd.

At the moment I'm creating my docker container. Extracting the filesystem with "docker export" partitioning and creating my ssd. Then I copy the extracted filesystem, adjust the /etc/fstab as well as changing the /etc/hostname.

Here is the problem: When I start the ssd in my other computer, grub loads fine. But while booting linux, it just stops somewhere in the boot process. Right after adding the swap partition, it doesn't do anything else. (No error appears).

What can I add to my container so the extracted filesystem contains everything for an successful start?

Docker容器(和映像)不包含引导分区,而仅包含根分区。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM