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

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




On 08/21/2015 02:59 AM, Tobias Florek wrote:
> 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
>
Take a look at the "atomic mount" command.  We are also working on breaking
out the graphc/libgraphdriver code to make this easier.  Hope to have pull
requests to docker in the next couple of weeks.


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