Docker Community Forums

Share and learn in the Docker community.

Linux command line repeat commands is not available ("up arrow" types garbage characters)

Greetings,

Created a docker node image (docker pull node) in Docker Desktop for Windows.

The Debian Linux in this image is not setup the way I want to use it on the command line. One of the items is that the up arrow does not bring up previous commands.

  1. How does one go about fixing this (so that up arrow brings up last command typed)
  2. How do you make it permanent for all future instances of the command line in that docker?

Thanks,

DIn

When you start a CLI for container, your 1`st command should be: bash
This opens a bash shell that supports:

  • history browsing using the arrow keys
  • paste using right mouse click