Reputation: 420
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?
Upvotes: 0
Views: 269
Reputation: 38317
Docker containers (and images) do not contain a boot partition, only a root partition.
Upvotes: 1