mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-02 07:26:13 +00:00
Fix accidental removal of /etc/mtab from images
This was breaking some containers that use it, was a mistake. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
@@ -52,7 +52,7 @@ rm config.json.orig
|
||||
# extract rootfs
|
||||
EXCLUDE="--exclude .dockerenv --exclude Dockerfile \
|
||||
--exclude dev/console --exclude dev/pts --exclude dev/shm \
|
||||
--exclude etc/hostname --exclude etc/hosts --exclude etc/mtab --exclude etc/resolv.conf"
|
||||
--exclude etc/hostname --exclude etc/hosts --exclude etc/resolv.conf"
|
||||
mkdir -p rootfs
|
||||
CONTAINER="$(docker create $IMAGE /dev/null)"
|
||||
docker export "$CONTAINER" | tar -xf - -C rootfs $EXCLUDE
|
||||
|
Reference in New Issue
Block a user