Kitematic: Exec on Windows 10 does not support special keys

Created on 25 May 2016  路  10Comments  路  Source: docker/kitematic

Expected behavior

EXEC button runs PowerShell console, which correctly handles special keys

Actual behavior

Special keys (like backspace, arrow keys etc.) are converted to escape sequences like ^[[C

Information about the Issue

Docker CLI button works as expected, also like running docker exec -it containter bash from this console

Steps to reproduce the behavior

  1. Create some new container
  2. Push EXEC button on running container
  3. Use arrow keys

Most helpful comment

Hello, the solution was pretty simple to me: just type _bash_ and be happy :)

All 10 comments

What image are you referring to? What happens when you do this via the terminal instead of through kitematic?

What image are you referring to?

Every tested image, for example python:3.5.1 or registry:latest

What happens when you do this via the terminal instead of through kitematic?

If I run

$ docker exec -it python bash

from Docker Quickstart Terminal, everything works fine.

We try to be creative when doing a docker exec the problem is that most containers don't have bash which means that we default to sh to make sure we can get into all containers.
I believe if you do $ docker exec -it python sh you'll see the same thing.

Changing to bash once you're in is pretty straight-forward.

@FrenchBen Yes, that's the problem, sh in terminal behaves same as EXEC button. Thank you! But is possible to change Kitematic EXEC function to first try run bash and if not exists, then run sh command? Or set command name in global or container setting?

Unfortunately this would break the container, since the runnable command would fail.

I am having the same problem

I hate this problem. Basically, Kitematic has a button that says Exec but it shouldn't be used, because it will create a shell that is extremely annoying to interact with. The workaround suggested above is to stop using Kitematic (the Kitematic button called Exec), and that's the reason to close the issue?

Hello, the solution was pretty simple to me: just type _bash_ and be happy :)

Hello, the solution was pretty simple to me: just type bash and be happy :)

Thanks so much. That's very nice to learn!

@twocs FYI not all images have bash which is why it couldn't be used as the default shell.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

louia picture louia  路  3Comments

rick02840 picture rick02840  路  3Comments

matteo-bombelli picture matteo-bombelli  路  3Comments

STaRDoGG picture STaRDoGG  路  3Comments

jwschram picture jwschram  路  4Comments