Code Monkey home page Code Monkey logo

Comments (3)

shykes avatar shykes commented on May 18, 2024

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.

shykes avatar shykes commented on May 18, 2024

@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.

shykes avatar shykes commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.