Docker blank/empty previous bash commandRepeated long command in gnome-terminal do not show up in fullIs there an alternate keyboard combination for the Up key in bash?Can't Login In to Ubuntu VMCommand history (previous and next command) in ngspicebash prompt chenged itself to a plain “#”Command prompt is over written by previous commands!Terminal stops working after I run a command
How do you translate "Don't Fear the Reaper" into Latin?
My professor says my digit summing code is flawed. Is he right?
How can I attach a set of five panniers?
"Dear Stack Exchange, I am very disappointed in you" - How to construct a strong opening line in a letter?
Does wall of stone need support or not?
Why does 1.1.1.1 not resolve archive.is?
Variable fixing based on a good feasible solution
Negative feedbacks and "Language smoother"
Is It Possible to Make a Computer Virus That Acts as an Anti-virus?
Why is it so hard to land on the Moon?
How is the corresponding author on a (math) paper typically chosen?
Forstner Bits without Brad Point?
Which collation should I use for biblical Hebrew?
How to deal with intolerable behavior of a subordinate?
Drawing Super Mario Bros.....in LaTeX
What causes standard door hinges to close up to a certain amount automatically?
Delete line if next line is the same
Novel set in the future, children cannot change the class they are born into, one class is made uneducated by associating books with pain
A Grandma Riddle
'Kukhtarev's model' or 'THE Kukhtarev's model'?
Shortest way to get an EOF Error
Is data science mathematically interesting?
Are there any rules around when something can be described as "based on a true story"?
What does "drop" mean in this context?
Docker blank/empty previous bash command
Repeated long command in gnome-terminal do not show up in fullIs there an alternate keyboard combination for the Up key in bash?Can't Login In to Ubuntu VMCommand history (previous and next command) in ngspicebash prompt chenged itself to a plain “#”Command prompt is over written by previous commands!Terminal stops working after I run a command
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
I'm on Ubuntu 18.04, starting an interactive docker terminal with:
docker run --rm -it <image>
After typing a few commands, I type Ctrl+P to see the last command in history. The prompt remains blank, but typing Ctrl+P again shows the second to last command. Ctrl+N then works as expected.
The same issue occurs on all my machines. It also seems to be an issue specific to Ctrl+P because those keys don't work in vim in docker either.
Oddly enough, using the up arrow from the beginning also does as expected. Why is the prompt blank with Ctrl+P?
command-line bash docker
add a comment
|
I'm on Ubuntu 18.04, starting an interactive docker terminal with:
docker run --rm -it <image>
After typing a few commands, I type Ctrl+P to see the last command in history. The prompt remains blank, but typing Ctrl+P again shows the second to last command. Ctrl+N then works as expected.
The same issue occurs on all my machines. It also seems to be an issue specific to Ctrl+P because those keys don't work in vim in docker either.
Oddly enough, using the up arrow from the beginning also does as expected. Why is the prompt blank with Ctrl+P?
command-line bash docker
add a comment
|
I'm on Ubuntu 18.04, starting an interactive docker terminal with:
docker run --rm -it <image>
After typing a few commands, I type Ctrl+P to see the last command in history. The prompt remains blank, but typing Ctrl+P again shows the second to last command. Ctrl+N then works as expected.
The same issue occurs on all my machines. It also seems to be an issue specific to Ctrl+P because those keys don't work in vim in docker either.
Oddly enough, using the up arrow from the beginning also does as expected. Why is the prompt blank with Ctrl+P?
command-line bash docker
I'm on Ubuntu 18.04, starting an interactive docker terminal with:
docker run --rm -it <image>
After typing a few commands, I type Ctrl+P to see the last command in history. The prompt remains blank, but typing Ctrl+P again shows the second to last command. Ctrl+N then works as expected.
The same issue occurs on all my machines. It also seems to be an issue specific to Ctrl+P because those keys don't work in vim in docker either.
Oddly enough, using the up arrow from the beginning also does as expected. Why is the prompt blank with Ctrl+P?
command-line bash docker
command-line bash docker
edited May 13 at 23:33
davidvandebunte
asked Apr 25 at 19:30
davidvandebuntedavidvandebunte
1063 bronze badges
1063 bronze badges
add a comment
|
add a comment
|
1 Answer
1
active
oldest
votes
See the SO question How do you attach and detach from Docker's process? for the root cause. I can see how it'd be useful to have keys for this in docker, but it's surprising the default chord starts with such a common key combination.
See Use the Docker command line | Docker Documentation for a solution. To summarize that page, create a .docker/config.json
file in your home directory and use the same default suggested in the docker documentation:
"detachKeys": "ctrl-e,e"
add a comment
|
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1138166%2fdocker-blank-empty-previous-bash-command%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
See the SO question How do you attach and detach from Docker's process? for the root cause. I can see how it'd be useful to have keys for this in docker, but it's surprising the default chord starts with such a common key combination.
See Use the Docker command line | Docker Documentation for a solution. To summarize that page, create a .docker/config.json
file in your home directory and use the same default suggested in the docker documentation:
"detachKeys": "ctrl-e,e"
add a comment
|
See the SO question How do you attach and detach from Docker's process? for the root cause. I can see how it'd be useful to have keys for this in docker, but it's surprising the default chord starts with such a common key combination.
See Use the Docker command line | Docker Documentation for a solution. To summarize that page, create a .docker/config.json
file in your home directory and use the same default suggested in the docker documentation:
"detachKeys": "ctrl-e,e"
add a comment
|
See the SO question How do you attach and detach from Docker's process? for the root cause. I can see how it'd be useful to have keys for this in docker, but it's surprising the default chord starts with such a common key combination.
See Use the Docker command line | Docker Documentation for a solution. To summarize that page, create a .docker/config.json
file in your home directory and use the same default suggested in the docker documentation:
"detachKeys": "ctrl-e,e"
See the SO question How do you attach and detach from Docker's process? for the root cause. I can see how it'd be useful to have keys for this in docker, but it's surprising the default chord starts with such a common key combination.
See Use the Docker command line | Docker Documentation for a solution. To summarize that page, create a .docker/config.json
file in your home directory and use the same default suggested in the docker documentation:
"detachKeys": "ctrl-e,e"
answered May 13 at 23:40
davidvandebuntedavidvandebunte
1063 bronze badges
1063 bronze badges
add a comment
|
add a comment
|
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1138166%2fdocker-blank-empty-previous-bash-command%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown