Comments (10)
We have created an issue in Pivotal Tracker to manage this:
https://www.pivotaltracker.com/story/show/157512119
The labels on this github issue will be updated when the story is started.
from garden-runc-release.
Other example Dockerfile that fails:
FROM alpine
RUN mkdir -p /test/foo && \
touch /test/foo/1 /test/foo/2 && \
mkdir -p /test/foo/bar && \
touch /test/foo/bar/3
RUN rm -rf /test/foo/*
RUN touch /test/foo/4 # It fails also without this line
ENTRYPOINT ["/bin/sh", "-c", "ls /test/foo && sleep 24000"]
On 1.13 fails with:
2018-05-11T15:34:42.36+0100 [APP/PROC/WEB/0] OUT 4
2018-05-11T15:34:42.36+0100 [APP/PROC/WEB/0] ERR ls: /test/foo/1: No such file or directory
2018-05-11T15:34:42.36+0100 [APP/PROC/WEB/0] ERR ls: /test/foo/2: No such file or directory
2018-05-11T15:34:42.36+0100 [APP/PROC/WEB/0] ERR ls: /test/foo/bar: No such file or directory
2018-05-11T15:34:42.38+0100 [APP/PROC/WEB/0] OUT Exit status 1
2018-05-11T15:34:42.38+0100 [CELL/SSHD/0] OUT Exit status 0
from garden-runc-release.
Yep, I can reproduce this with the Dockerfile in the previous comment:
2018-05-11 16:01:41 ruby 2.4.1p111 piv-ws-eelpieisland in ~/workspace/garden-runc-release
± db+wm |develop ✓| → gaol create -n lsbug -r docker://cfgarden/lsbug
lsbug
2018-05-11 16:02:02 ruby 2.4.1p111 piv-ws-eelpieisland in ~/workspace/garden-runc-release
± db+wm |develop ✓| → gaol run -a -c "ls /test/foo" lsbug
4
ls: /test/foo/1: No such file or directory
ls: /test/foo/2: No such file or directory
ls: /test/foo/bar: No such file or directory
from garden-runc-release.
This was definitely introduced between 1.12.1 and 1.13.0 (checked even though this release was pulled)
from garden-runc-release.
For the record, a workaround could be flatten the image, for instance by using multi-stage dockerfiles:
FROM alpine
RUN mkdir -p /test/foo && \
touch /test/foo/1 /test/foo/2 && \
mkdir -p /test/foo/bar && \
touch /test/foo/bar/3
RUN rm -rf /test/foo/*
RUN touch /test/foo/4 # It fails also without this line
FROM scratch
COPY --from=0 / /
ENTRYPOINT ["/bin/sh", "-c", "ls /test/foo && sleep 24000"]
from garden-runc-release.
This is the responsible commit 55712b8
from garden-runc-release.
This is an even simpler reproduction:
FROM alpine
RUN mkdir -p /test/foo && \
touch /test/foo/1 /test/foo/2
RUN rm -rf /test/foo/2
ENTRYPOINT ["/bin/sh", "-c", "ls /test/foo && sleep 24000"]
from garden-runc-release.
@bandesz based on the linked PR in alphagov/paas-cf, it looks like this is resolved.
Are you happy to close this?
from garden-runc-release.
Just for reference, this issue can also present the following symptom (i.e. note the ???????
s):
[root@cake conf.d]# ls -la
ls: cannot access 'welcome.conf': No such file or directory
total 16
drwxr-xr-x 1 root root 25 Jun 6 09:53 .
drwxr-xr-x 1 root root 19 Jun 6 09:53 ..
-rw-r--r-- 1 root root 366 May 1 08:54 README
-rw-r--r-- 1 root root 21 Jun 6 2018 ServerName.conf
-rw-r--r-- 1 root root 2893 May 1 08:54 autoindex.conf
-rw-r--r-- 1 root root 1252 May 1 08:51 userdir.conf
?????????? ? ? ? ? ? welcome.conf
from garden-runc-release.
@BooleanCat yes, the the issue can be closed. Thanks for the fix!
from garden-runc-release.
Related Issues (20)
- thresholder flakes HOT 2
- Use containerd-style stdin closer instead of exponential backoff stdin close HOT 2
- Get the protobuf duplicate fix registration warning/panic fixed in log-cache-release HOT 3
- GrootFS additional metrics HOT 7
- Support exporting garden-runc-release on windows HOT 4
- Uninitialized constant when rendering job template HOT 15
- Add support in CFAR for per-docker-app seccomp profiles HOT 6
- Upgrade busybox to 1.34.1 HOT 1
- Question: now the app container started by garden, the PID 1 process is app process? HOT 3
- gdn binary is gone in 1.20.9 release assets HOT 3
- Gdn failed to run on ubuntu bionic HOT 33
- Release gdn binary for ARM HOT 2
- release 1.22.9 doesn't include gdn binary HOT 2
- containerd and runc are included in two places that cause versions falling out of sync HOT 1
- Pinned dependecies should have a reason or unpinned
- Test issue. Please Ignore.
- Change default for garden spec to be containerd mode
- Stop Testing for and remove rootless mode
- Stop testing for containerd-for-processes in CI HOT 6
- Missing gdn binaries in release assets for 1.46 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from garden-runc-release.