Comments (3)
This causes interactive commands to fail when they rely on the ability to open /dev/tty. For example:
- git clone on a private repository (when requesting username and password)
- apt-get install (when requesting information interactively, eg. upon installing mysql-server)
from moby.
@Andrea and I have played with a few knobs to find the source of the problem, with interesting results.
Knob 1: call setsid() and set the controlling terminal to fd 0: http://pastie.org/private/z73dibby22bmuiiujwjf1g#10
--> This causes 'docker run -i -t -a base /bin/bash' to fail, with 'invalid ioctl for device'.
Knob 2: leaving knob 1 in place, execute the command directly instead of going through lxc-start: http://pastie.org/private/z73dibby22bmuiiujwjf1g#18
--> This fixes the problem introduced by knob 1 (but doesn't fix /dev/tty).
In short, it seems that lxc-start itself messes with tty allocation in a non-trivial way, and at the very least we should understand what it does if we hope to fix this /dev/tty issue.
from moby.
This part of lxc's source seems relevant: https://github.com/lxc/lxc/blob/staging/src/lxc/conf.c#L671
It is called by lxc_start.
from moby.
Related Issues (20)
- Proposal: decompose --privileged into individual --security-opt options HOT 4
- --data-path-addr does not set listen address of VXLAN port HOT 4
- Requests from docker container to remote DB are slow HOT 1
- docker image ls does not show images loaded from a tar file HOT 12
- Default Nvidia CDI spec location on rootless kit seems to be unaccessible HOT 1
- WIP: containerd integration: Multi-platform images UX
- "Incorrect" host-gateway in case with Rootless Docker HOT 4
- docker compose fails to mount sub-directories of named volumes HOT 2
- Fail to start a development container HOT 3
- [v26] Build caching with `type=cache` mounts HOT 7
- Provide the ability to update the container's DeviceRequest
- Getting "error while resolving symlinks in base directory" when using subpath HOT 6
- Certain log configuration reliably triggers a segfault
- How to leverage VFP NAT rules for outbound connectivity for overlay networks created by Docker Swarm in Windows server 2022
- Executing 'docker exec' to enter a container does not generate any logs. HOT 1
- Resolving down Swarm service from service with `dns: "127.0.0.11"` results in hundreds of errors per second in syslog HOT 11
- containerd integration: Passing a build context via tarball to the `/build` endpoint is broken
- Stopping container signal blocked by AppArmor on Ubuntu HOT 3
- Incorrect owner on volume inside bind mount HOT 2
- Add resynching mechanism to endpoint_table of networkDB HOT 10
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 moby.