Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #108368
| From | Larry Martell <larry.martell@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: starting docker container messes up terminal settings |
| Date | 2016-05-08 12:25 -0400 |
| Message-ID | <mailman.521.1462724750.32212.python-list@python.org> (permalink) |
| References | <CACwCsY7Kik=tjRg80oyeEK9ag-PrZfvdYX0ptHSAe9m82MWhWg@mail.gmail.com> <HE1PR07MB135624D83ED6051F98DFF28AF0790@HE1PR07MB1356.eurprd07.prod.outlook.com> <CACwCsY4Q1bjCAFD4YQho_5GF5hXLL-VJR_owzHLrd6GvSiD1PQ@mail.gmail.com> <CACwCsY7HpoeMdvLjaOr3ZCn=UMcNDpWnS_Y+nJZC2VHaaMBuXQ@mail.gmail.com> |
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 comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: starting docker container messes up terminal settings Larry Martell <larry.martell@gmail.com> - 2016-05-08 12:25 -0400
csiph-web