Post AhrsEG8eCHav9CPr4S by singe@chaos.social
(DIR) More posts by singe@chaos.social
(DIR) Post #AhrsEFKJDRKQd4rebo by tedmielczarek@mastodon.social
2024-05-06T04:07:53Z
0 likes, 0 repeats
@benno this seems like what docker export does? https://docs.docker.com/reference/cli/docker/container/export/ (TIL)
(DIR) Post #AhrsEG8eCHav9CPr4S by singe@chaos.social
2024-05-06T04:36:19Z
0 likes, 0 repeats
@tedmielczarek @benno +1 for export
(DIR) Post #AhuEFJO6Bl3Wp1TD6G by nakeee@mastodon.world
2024-05-06T04:00:53Z
0 likes, 0 repeats
@benno @haroldgodwinson would sth like podman exec CONTAINERID tar cjf - / > file.tar.xz
(DIR) Post #AhvLUXvZJ1KJ66ISJc by jamesh@aus.social
2024-05-06T04:11:37Z
0 likes, 0 repeats
@benno If you're building the container, there's "docker build --squash" to create a single layer image: https://docs.docker.com/reference/cli/docker/image/build/#squash -- the tar file for that single layer should be the container file system.If you don't want to rebuild the container, you could create a trivial Dockerfile that uses it as a base image but changes nothing, then build that with --squash.
(DIR) Post #Ai70gPLDHyhUnlcrAW by vadim@social.vrutkovs.eu
2024-05-06T06:44:01.809121Z
0 likes, 0 repeats
@benno `skopeo` can copy image contents to a dir bypassing container stage - https://www.mankier.com/1/skopeo