Skip to content
This repository has been archived by the owner. It is now read-only.

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

@JTarasovic
Copy link

@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
Copy link

@ajeddeloh 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
Copy link

@ajeddeloh 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
Copy link
Author

@JTarasovic JTarasovic commented May 24, 2018

Thank you, all! That was hella quick.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants