Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #108368 > unrolled thread
| Started by | Larry Martell <larry.martell@gmail.com> |
|---|---|
| First post | 2016-05-08 12:25 -0400 |
| Last post | 2016-05-08 12:25 -0400 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: starting docker container messes up terminal settings Larry Martell <larry.martell@gmail.com> - 2016-05-08 12:25 -0400
| From | Larry Martell <larry.martell@gmail.com> |
|---|---|
| Date | 2016-05-08 12:25 -0400 |
| Subject | Re: starting docker container messes up terminal settings |
| Message-ID | <mailman.521.1462724750.32212.python-list@python.org> |
On Mon, May 2, 2016 at 10:28 AM, Larry Martell <larry.martell@gmail.com> wrote: > On Mon, May 2, 2016 at 10:08 AM, Joaquin Alzola > <Joaquin.Alzola@lebara.com> wrote: >>>I am starting a docker container from a subprocess.Popen and it works, but when the script returns, the terminal settings of my shell are messed up. Nothing is echoed and return doesn't cause a >newline. I can fix this with 'tset' in the terminal, but I don't want to require that. Has anyone here worked with docker and had seen and solved this issue? >> >> It is good to put part of the code you think is causing the error (Popen subprocess) > > cmd = ['sudo', > 'docker', > 'run', > '-t', > '-i', > 'elucidbio/capdata:v2', > 'bash' > ] > p = subprocess.Popen(cmd, stdout=subprocess.PIPE, > stderr=subprocess.STDOUT) If anyone cares (which is doubtful), I fixed this by removing -t and passing in stdin=None to Popen.
Back to top | Article view | comp.lang.python
csiph-web