New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1786.0.1 - Docker 18.05.0-ce has a bind mount bug that prevents containers with volumes from starting #2440

Closed
JTarasovic opened this Issue May 24, 2018 · 3 comments

Comments

Projects
None yet
3 participants
@JTarasovic

JTarasovic commented May 24, 2018

Issue Report

Bug

Docker 18.05.0-ce has a bind mount bug that prevents containers from starting.
Issue: moby/moby#37032
Fix: moby/moby#37031

Container Linux Version

$ cat /etc/os-release
NAME="Container Linux by CoreOS"
ID=coreos
VERSION=1786.0.1
VERSION_ID=1786.0.1
BUILD_ID=2018-05-23-1022
PRETTY_NAME="Container Linux by CoreOS 1786.0.1 (Rhyolite)"
ANSI_COLOR="38;5;75"
HOME_URL="https://coreos.com/"
BUG_REPORT_URL="https://issues.coreos.com"
COREOS_BOARD="amd64-usr"

Environment

What hardware/cloud provider/hypervisor is being used to run Container Linux?
AWS

Expected Behavior

kubernetes / kubelet managed containers w/ bind mounted volumes start

Actual Behavior

"Error": "linux mounts: Could not find source mount of /etc/coreos"

Reproduction Steps

docker run -it --rm --mount type=bind,source=/etc/coreos,target=/etc/coreos,bind-propagation=rslave busybox /bin/sh

Other Information

partial output of docker inspect for failing container-linux-update-agent container

         "State": {
            "Status": "created",
            "Running": false,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 0,
            "ExitCode": 128,
            "Error": "linux mounts: Could not find source mount of /etc/coreos",
            "StartedAt": "0001-01-01T00:00:00Z",
            "FinishedAt": "0001-01-01T00:00:00Z"
        },
            {
                "Type": "bind",
                "Source": "/etc/coreos",
                "Destination": "/etc/coreos",
                "Mode": "rslave",
                "RW": true,
                "Propagation": "rslave"
            },
@ajeddeloh

This comment has been minimized.

ajeddeloh commented May 24, 2018

I can repro this (thanks for the easy repro). Tested the fixed and confirmed it worked. Working on backporting this now.

@ajeddeloh

This comment has been minimized.

ajeddeloh commented May 24, 2018

Closed via coreos/coreos-overlay#3248 which should be in Alpha 1786.1.0, which should be released soon

@ajeddeloh ajeddeloh closed this May 24, 2018

@JTarasovic

This comment has been minimized.

JTarasovic commented May 24, 2018

Thank you, all! That was hella quick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment