Comments (14)
echo foo | sudo docker run progrium/buildstep cat
gives no output, wtf
And it's not sudo, this happens when run as root directly as well
from buildstep.
moby/moby#7142 claims adding -i
should fix it, but it doesn't (moby/moby#7143).
from buildstep.
How is -i
not working?
libcontainer|master ⇒ git archive HEAD | docker run -i ubuntu:14.04 /bin/bash -c "mkdir -p /app && tar -xC /app"
libcontainer|master ⇒ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
libcontainer|master ⇒ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b71dbf644fd7 ubuntu:14.04 "/bin/bash -c 'mkdir 7 seconds ago Exited (0) 6 seconds ago evil_ptolemy
d34e448971fb ubuntu:14.04 "/bin/bash -c 'mkdir 17 seconds ago Exited (2) 16 seconds ago kickass_hopper
16900e8ca046 ubuntu:14.04 "bash -c 'echo start 2 minutes ago Exited (0) 2 minutes ago focused_euclid
07b69fbab6c2 ubuntu:14.04 "bash -c 'echo start 2 minutes ago Exited (0) 2 minutes ago cranky_nobel
libcontainer|master ⇒ docker commit b71dbf644fd7
cbbb86058a73308e95a58edcc99d01258cea6c8c5fc5f5cdea8a48230194611a
libcontainer|master ⇒ docker run -ti cbbb86058a73308e95a58edcc99d01258cea6c8c5fc5f5cdea8a48230194611a bash
root@3233cab43416:/# ls
app bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var
root@3233cab43416:/# cd app
root@3233cab43416:/app# ls
CONTRIBUTORS_GUIDE.md NOTICE apparmor container.go namespaces sample_configs system
Dockerfile PRINCIPLES.md cgroups devices netlink security types.go
LICENSE README.md config.go factory.go network selinux utils
MAINTAINERS ROADMAP.md config_test.go label nsinit state.go
MAINTAINERS_GUIDE.md api_temp.go console mount process.go syncpipe
root@3233cab43416:/app# exit
exit
libcontainer|master ⇒
from buildstep.
It doesn't work with -a stdin
. See moby/moby#7143.
from buildstep.
Why are you using -a stdin
in the first place?
from buildstep.
See https://github.com/progrium/buildstep/blob/master/buildstep - it's to get the container ID.
from buildstep.
ok, i understand now, thanks.
from buildstep.
This is a weird issue. I remember getting this right took a while in Docker when it was released before I could make this (and Dokku). But it does work now (as in, many people use Dokku and buildstep), so I'm curious what's special about this case?
from buildstep.
It's a regression in Docker iirc: moby/moby#7143
from buildstep.
Also iirc this doesn't affect Dokku because Dokku always uses -i
(as does plushu-buildstep, which works around this bug by using --cidfile
).
from buildstep.
Any news/developments on this issue?
from buildstep.
Ask moby/moby#7143
from buildstep.
I wonder if it could be that this is not docker related at all. The same message gets shown when the ruby buildpack can't complete the download of the requested ruby version in time (default is 30 seconds). Since curl pipes it output directly to tar there's no clean way to recover and tar sees an incomplete archive.
from buildstep.
This error was definitely caused y Docker. There are other things that will cause stdin to not look like a tar archive, but not connecting it at all is the simplest of them, and different from a premature interruption. Again, see moby/moby#7143.
from buildstep.
Related Issues (20)
- /build/compile.sh: line 24: cd: /app: Permission denied HOT 31
- Provide extendable docker image HOT 4
- Update Ruby Buildpack HOT 2
- Non root user "breaks" dokku-volume HOT 11
- run tests in docker container HOT 3
- chown in /start -- is it necessary? HOT 17
- Problem with ddollar buildpack(s) HOT 5
- Update node.js buildpack for io.js fork
- Security rethink - separate users for build and run HOT 1
- NioGroovyMethods not loaded in grails app HOT 2
- heroku-buildpack-php newrelic segfaults? HOT 14
- latest nodejs buildpack fails with permission denied HOT 6
- Update Docker Hub image when Base Image is updated HOT 1
- dotnet-buildpack fails on dokku HOT 11
- Link to "officially support list of buildpack" broken HOT 1
- Python wheel deployment HOT 1
- How to install custom apt packages?
- [DEPRECATED] This script is outdated and was originally for demo purposes. It will be removed soon. HOT 1
- Add me as collaborator to this repo HOT 2
- Problem with starting build HOT 1
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 buildstep.