Comments (8)
Probably the same issue. I created a container with a sshd running. When I login, I get the following message:
PTY allocation request failed on channel 0
stdin: is not a tty
from bocker.
You can try passing -t I believe?
from bocker.
ssh -t 10.0.0.15 results in a direct disconnect after the "PTY allocation request failed on channel 0" message.
from bocker.
Okay, doing some more investigation:
It seems that this line is the problem: 2>&1 | tee "$btrfs_path/$uuid/$uuid.log"
If I remove that part, it seems to work correctly. Although, SSH is still experiencing the same issues.
$CGX:$uuid ip netns exec netns_"$uuid" "unshare" -fmuip --mount-proc "chroot" \
"$btrfs_path/$uuid" /bin/sh -c "/bin/mount -t proc proc /proc && $cmd" \
2>&1 | tee "$btrfs_path/$uuid/$uuid.log" || true
from bocker.
I'm on a roll!
I fixed the SSH issue by running this command in the container:
mount -t devpts none /dev/pts
from bocker.
@basdp Thanks for reporting this. It looks like tee
is blocking stdout, probably because the steam is still open. Will try and address this today or tomorrow.
from bocker.
It's probably worth mounting pts by default.
I don't run SSH in containers, can you suggest me a Docker image to test with with?
from bocker.
If still relevant, this one: https://hub.docker.com/r/evarga/jenkins-slave/
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 exec fails HOT 6
- 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.