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;









1

















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?










share|improve this question


































    1

















    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?










    share|improve this question






























      1












      1








      1








      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?










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question



      share|improve this question








      edited May 13 at 23:33







      davidvandebunte

















      asked Apr 25 at 19:30









      davidvandebuntedavidvandebunte

      1063 bronze badges




      1063 bronze badges























          1 Answer
          1






          active

          oldest

          votes


















          0


















          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"






          share|improve this answer



























            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
            );



            );














            draft saved

            draft discarded
















            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









            0


















            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"






            share|improve this answer






























              0


















              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"






              share|improve this answer




























                0














                0










                0









                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"






                share|improve this answer














                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"







                share|improve this answer













                share|improve this answer




                share|improve this answer



                share|improve this answer










                answered May 13 at 23:40









                davidvandebuntedavidvandebunte

                1063 bronze badges




                1063 bronze badges































                    draft saved

                    draft discarded















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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









                    Popular posts from this blog

                    Tamil (spriik) Luke uk diar | Nawigatjuun

                    Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

                    Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?