When using shell inside Docker, previous command (Ctrl+P) does not refreshWhy is my $PATH different in the...

What does "Scientists rise up against statistical significance" mean? (Comment in Nature)

Recommended PCB layout understanding - ADM2572 datasheet

Why would a new[] expression ever invoke a destructor?

Multiplicative persistence

What are some good ways to treat frozen vegetables such that they behave like fresh vegetables when stir frying them?

A social experiment. What is the worst that can happen?

Why is the "ls" command showing permissions of files in a FAT32 partition?

The IT department bottlenecks progress. How should I handle this?

Why does AES have exactly 10 rounds for a 128-bit key, 12 for 192 bits and 14 for a 256-bit key size?

How to fade a semiplane defined by line?

How much character growth crosses the line into breaking the character

What if a revenant (monster) gains fire resistance?

Extract more than nine arguments that occur periodically in a sentence to use in macros in order to typset

Creepy dinosaur pc game identification

Non-trope happy ending?

Limits and Infinite Integration by Parts

How do you respond to a colleague from another team when they're wrongly expecting that you'll help them?

Why does a simple loop result in ASYNC_NETWORK_IO waits?

Why does the Sun have different day lengths, but not the gas giants?

Does the Linux kernel need a file system to run?

Can a Canadian Travel to the USA twice, less than 180 days each time?

Temporarily disable WLAN internet access for children, but allow it for adults

Calculating total slots

What is the evidence for the "tyranny of the majority problem" in a direct democracy context?



When using shell inside Docker, previous command (Ctrl+P) does not refresh


Why is my $PATH different in the executed script?how to make ctrl+p behave exactly like up arrow in zsh?Zsh not recognizing file changes with search pathDefault shell for running scripts (w/o shebang) in macos?How to delete old $PATH echo in MacShowing docker container name in ps listreading stdout in pipeline using “-” fails for “docker exec”How to create symbolic links in /usr/bin on a Mac?SSH client can not connect inside the docker containerVisual Studio Code not working with Zsh on Linux













0















I'm new to Docker, and I had a running container with Ubuntu 16.



I usually connect the container with the command:



docker exec -it 7e3 /usr/bin/zsh


Then, when I use the shell inside the Docker,
when I type Ctrl+P to show the previous command,
the Terminal did not refresh and nothing shows. 
I have to press something else to make it refresh. 
My Terminal is iTerm on macOS Mojave.



I did some search on Google, such as "docker shell not refresh",
but I could not find anything useful.










share|improve this question









New contributor




rainyluo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    I'm new to Docker, and I had a running container with Ubuntu 16.



    I usually connect the container with the command:



    docker exec -it 7e3 /usr/bin/zsh


    Then, when I use the shell inside the Docker,
    when I type Ctrl+P to show the previous command,
    the Terminal did not refresh and nothing shows. 
    I have to press something else to make it refresh. 
    My Terminal is iTerm on macOS Mojave.



    I did some search on Google, such as "docker shell not refresh",
    but I could not find anything useful.










    share|improve this question









    New contributor




    rainyluo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      I'm new to Docker, and I had a running container with Ubuntu 16.



      I usually connect the container with the command:



      docker exec -it 7e3 /usr/bin/zsh


      Then, when I use the shell inside the Docker,
      when I type Ctrl+P to show the previous command,
      the Terminal did not refresh and nothing shows. 
      I have to press something else to make it refresh. 
      My Terminal is iTerm on macOS Mojave.



      I did some search on Google, such as "docker shell not refresh",
      but I could not find anything useful.










      share|improve this question









      New contributor




      rainyluo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I'm new to Docker, and I had a running container with Ubuntu 16.



      I usually connect the container with the command:



      docker exec -it 7e3 /usr/bin/zsh


      Then, when I use the shell inside the Docker,
      when I type Ctrl+P to show the previous command,
      the Terminal did not refresh and nothing shows. 
      I have to press something else to make it refresh. 
      My Terminal is iTerm on macOS Mojave.



      I did some search on Google, such as "docker shell not refresh",
      but I could not find anything useful.







      shell zsh docker






      share|improve this question









      New contributor




      rainyluo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      rainyluo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited 4 mins ago









      Scott

      16.1k113990




      16.1k113990






      New contributor




      rainyluo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 1 hour ago









      rainyluorainyluo

      1




      1




      New contributor




      rainyluo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      rainyluo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      rainyluo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          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/3.0/"u003ecc by-sa 3.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
          });


          }
          });






          rainyluo is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1416533%2fwhen-using-shell-inside-docker-previous-command-ctrlp-does-not-refresh%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          rainyluo is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          rainyluo is a new contributor. Be nice, and check out our Code of Conduct.













          rainyluo is a new contributor. Be nice, and check out our Code of Conduct.












          rainyluo is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Super User!


          • 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%2fsuperuser.com%2fquestions%2f1416533%2fwhen-using-shell-inside-docker-previous-command-ctrlp-does-not-refresh%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

          Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

          VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

          Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...