[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[atomic-devel] utility to mount devicemapper-based docker images?



Hi,

is there a utility to mount a given docker graph in the host's filesystem?

If so, can it be included in the various atomic hosts?


Some background:

Some privileged containers can't run with docker right now, because of
limitations with docker (early-boot, shared mounts from container to
host, etc). My solution for these containers is to use systemd-nspawn
(or even manual chroot for mounting gluster). For now I use (more or less)

> DOCKER_CONTAINER_ID="$(/usr/bin/docker create ${IMAGE})"
> /usr/bin/docker export "$DOCKER_CONTAINER_ID" \
   | tar xC "/var/lib/machines/${NAME}"
> /usr/bin/docker rm "$DOCKER_CONTAINER_ID"

which works but is inefficient and depends on (the atomic tool to) redo
these steps whenever an update to the container is done.

Thanks,
 Tobias Florek


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]