Since the latest update to Docker for Mac (17.03.1-ce-mac5) I’m seeing containers “losing” access to mounts.
I use Docker to simplify local dev. I run a container interactively and mount pwd in the container so I can use local dev tools but run the result in a container. This has worked fine for months. It seems that access to the mountpoint is transient, here’s a log from a container where I’ve just pressed enter for a bit.
The shell doesn’t have timestamps but this log is over a period of ~2mins
$ docker run -it --rm --link postgres --link redis --network test_net -v $(pwd):/app -w /app perl-dev
/app #
/app #
ash: getcwd: No such file or directory
(unknown) #
ash: getcwd: No such file or directory
(unknown) #
ash: getcwd: No such file or directory
(unknown) # cd /
/ # cd /app
ash: getcwd: No such file or directory
(unknown) #
ash: getcwd: No such file or directory
(unknown) #
ash: getcwd: No such file or directory
(unknown) #
ash: getcwd: No such file or directory
(unknown) #
/app #
/app #
/app # %
Dockerfile for perl-dev
FROM alpine:edge
# Basic dependencies
RUN apk -U add --no-cache tzdata git curl wget perl perl-dev libressl libressl-dev make gcc libc-dev zlib-dev
# Extras
RUN apk add --no-cache postgresql-dev unzip
# Tidy up
RUN rm /var/cache/apk/*
RUN curl -L https://cpanmin.us/ -o /usr/local/bin/cpanm && \
chmod +x /usr/local/bin/cpanm
RUN cpanm -i Carton Minilla Version::Next CPAN::Uploader
CMD ash
Any ideas? This has only started happening in the last few days. Currently on stable channel, nothing obvious shows up in the logs for the hyperkit VM etc