Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Docker 1.13.0 - Must be connected to a terminal. - screen #30421
I enter my docker container (docker version
however I then get the following error:
I remember this working just fine a while ago with an older docker version.
Is someone familiar with this problem? Could it be a bug?
hi @cpuguy83! Thanks and yes that is correct, it works when I run the container via docker and add there the
I was wondering now how to model the same
Here is some crucial part of the the inspect:
So It seems to be still set to
in the docker-compose file under the correct docker container settings.
I assume this is a bug. Do you need some more info @cpuguy83?
@amir-beheshty Yes this issue still persists also for me.
However I came to the conclusion that its probably way better (not tested yet) to install screen on the host and run the command inside the container from there with docker exec, something like
So one does not need to install
@phlegx is this still an issue for you? I tried to reproduce using the following steps;
docker run -d --name foo nginx:alpine
docker exec -it foo sh
/ # apk add --no-cache screen fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/community/x86_64/APKINDEX.tar.gz (1/4) Installing ncurses-terminfo-base (6.0-r7) (2/4) Installing ncurses-terminfo (6.0-r7) (3/4) Installing ncurses-libs (6.0-r7) (4/4) Installing screen (4.5.1-r0) Executing busybox-1.25.1-r0.trigger OK: 20 MiB in 30 packages / #
/ # screen GNU Screen version 4.05.01 (GNU) 25-Feb-17 Copyright (c) 2015-2017 Juergen Weigert, Alexander Naumov, Amadeusz Slawinski Copyright (c) 2010-2014 Juergen Weigert, Sadrul Habib Chowdhury Copyright (c) 2008-2009 Juergen Weigert, Michael Schroeder, Micah Cowan, Sadrul Habib Chowdhury Copyright (c) 1993-2007 Juergen Weigert, Michael Schroeder Copyright (c) 1987 Oliver Laumann This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program (see the file COPYING); if not, see http://www.gnu.org/licenses/, or contact Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA. Send bugreports, fixes, enhancements, t-shirts, money, beer & pizza to email@example.com Capabilities: +copy +remote-detach +power-detach +multi-attach +multi-user +font +color-16 +utf8 -rxvt -builtin-telnet