Comments (6)
Hey @basdp
This is a bug, something isn't working quite right with bocker exec
. I thought it might be fixed with 11129ae but it's still not quite right.
from bocker.
What is still not right?
from bocker.
Sorry, I mean I thought 11129ae would also fix the exec issues, but it didn't. Exec still isn't working once the original process dies.
from bocker.
Ok so there are two issues here.
Start a container:
bocker run img_42078 "while :; do echo 'foo'; sleep 5; done"
Try and exec a command with multiple words = FAILS:
bocker exec ps_42201 ps aux
chroot: failed to run command ‘ps aux’: No such file or directory`
Try and exec a command with one word = WORKS:
bocker exec ps_42201 bash
ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.2 11116 1392 ? S+ 18:31 0:00 /bin/sh -c /bin/mount -t proc proc /proc && while :; do echo 'foo'; sleep 5; done
root 8 0.0 0.1 5884 612 ? S+ 18:31 0:00 sleep 5
root 9 0.0 0.3 13344 1952 ? S 18:31 0:00 bash
root 22 0.0 0.2 21364 1376 ? R+ 18:31 0:00 ps aux
Ctrl-C the bocker run
command and then try to re-enter it = FAILS:
bocker exec ps_42201 bash
nsenter: failed to parse pid: 'PID
1
2
3
...
24105
24106
24107
So what needs doing here is:
- Correctly quote and pass arguments into the container when exec'ing.
- Throw an error if the container is not running.
from bocker.
I'm going to keep tracking the spewing out numbers issue here and the multiple words one at #20
from bocker.
Should be resolved by 7911226
from bocker.
Related Issues (15)
- Using 'shuf' for uuid generation results in occasional name conflicts. HOT 1
- Data mounts and port forwarding HOT 1
- bocker bash doesn't display a prompt HOT 8
- Question: why this MAC address prefix? HOT 1
- default $IFS is not `unset` HOT 1
- bocker exec fails #2 HOT 1
- bocker pull does not support public registry, can't pull from there anymore HOT 8
- Host isolation tested? HOT 1
- All 'containers' have the same IP HOT 3
- how do u define a container?
- How does this work? HOT 3
- is this the coolest thing ever? HOT 1
- rename to mocker :) HOT 1
- Should be called shocker hahaha `shell docker` 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 bocker.