Giter Club home page Giter Club logo

Comments (10)

cf-gitbot avatar cf-gitbot commented on August 22, 2024

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.

keymon avatar keymon commented on August 22, 2024

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.

williammartin avatar williammartin commented on August 22, 2024

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.

williammartin avatar williammartin commented on August 22, 2024

This was definitely introduced between 1.12.1 and 1.13.0 (checked even though this release was pulled)

from garden-runc-release.

keymon avatar keymon commented on August 22, 2024

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.

williammartin avatar williammartin commented on August 22, 2024

This is the responsible commit 55712b8

from garden-runc-release.

williammartin avatar williammartin commented on August 22, 2024

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.

BooleanCat avatar BooleanCat commented on August 22, 2024

@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.

teddyking avatar teddyking commented on August 22, 2024

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.

bandesz avatar bandesz commented on August 22, 2024

@BooleanCat yes, the the issue can be closed. Thanks for the fix!

from garden-runc-release.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.