-
Notifications
You must be signed in to change notification settings - Fork 78
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
Failed to start container with empty /etc/ #83
Comments
We have created an issue in Pivotal Tracker to manage this: https://www.pivotaltracker.com/story/show/158788438 The labels on this github issue will be updated when the story is started. |
Hi @keymon - I suspect the problem here is that diego expects /etc/ to exist in order to bind mount /etc/cf-assets to it, so it can put the lifecycle binaries in to the container. In theory we should create the /etc/ parent directory as needed, but it looks like that failed. In know that in the deprecated garden-shed driver there's a problem (due to a limitation in aufs) that means we lack permissions in the container to create new directories directly under |
Going to close this due to inactivity @keymon feel free to re-open if your problem is not solved |
…eptance-tests grootfs guardian idmapper netplugin-shim Submodule src/dontpanic bea4b14b..41cf9eed: > Update go.mod dependencies > Merge pull request #83 from cloudfoundry/add-staticcheck-conf Submodule src/garden bf536b57..3cb1fc65: > Update go.mod dependencies > Merge pull request #117 from cloudfoundry/cpu-limit-in-shares-deprecation > Merge pull request #116 from cloudfoundry/add-staticcheck-conf Submodule src/garden-integration-tests 2f0550b1..9ee19677: > Update go.mod dependencies > Merge pull request #135 from cloudfoundry/cpu-limit-in-shares-deprecation > Merge pull request #134 from cloudfoundry/add-staticcheck-conf Submodule src/garden-performance-acceptance-tests c5008e93..7ddbd9ce: > Update go.mod dependencies > Merge pull request #63 from cloudfoundry/add-staticcheck-conf Submodule src/grootfs 20ff35f2..12db2dfa: > Update go.mod dependencies > Merge pull request #262 from cloudfoundry/add-staticcheck-conf Submodule src/guardian 4eb02d90..9a34ec3e: > Update go.mod dependencies > Merge pull request #433 from cloudfoundry/cpu-limit-in-shares-deprecation > Merge pull request #432 from cloudfoundry/add-staticcheck-conf Submodule src/idmapper 288a65f0..c1a3e64b: > Update go.mod dependencies > Merge pull request #79 from cloudfoundry/add-staticcheck-conf Submodule src/netplugin-shim f9adc008..c6fcf82a: > Update go.mod dependencies > Merge pull request #64 from cloudfoundry/add-staticcheck-conf
Description
When using a container with an empty
/etc/
directory, the application crashes starting with a cryptic message:Environment
Steps to reproduce
/etc/
directory (e.g.keymon/empty-etc
)cf push test-container -o keymon/empty-etc
Logs
Docker image (if relevant)
keymon/empty-etc
Cause
It might be an issue with the layered fs, where an empty directory does not allow to mount a fs, or gets created with the wrong permissions.
Resolution
If instead you drop any file into
/etc/
, it does not throw that error, but one complaining about the missing/etc/passwd
(which is fine).Then if we add a valid
/etc/passwd
the image works.The text was updated successfully, but these errors were encountered: