Kill a process inside docker in a “R” state

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I'm having a process on my server that I can't kill, even with kill -9.
It's in R state in top and in ps, and it's running inside docker.



It's a ls I've started in a very large folder.



It's taking 99% of a CPU and it's been running for more than 40 minutes now.



I've tried to kill docker (docker kill), but it hanged, now I can't get inside docker anymore:



root@server:~# docker exec -ti containername bash
oci runtime error: exec failed: container_linux.go:265: starting container process caused "process_linux.go:84: executing setns process caused "exit status 15""


How can I fix that without restarting the server ?










share|improve this question



























    up vote
    0
    down vote

    favorite












    I'm having a process on my server that I can't kill, even with kill -9.
    It's in R state in top and in ps, and it's running inside docker.



    It's a ls I've started in a very large folder.



    It's taking 99% of a CPU and it's been running for more than 40 minutes now.



    I've tried to kill docker (docker kill), but it hanged, now I can't get inside docker anymore:



    root@server:~# docker exec -ti containername bash
    oci runtime error: exec failed: container_linux.go:265: starting container process caused "process_linux.go:84: executing setns process caused "exit status 15""


    How can I fix that without restarting the server ?










    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm having a process on my server that I can't kill, even with kill -9.
      It's in R state in top and in ps, and it's running inside docker.



      It's a ls I've started in a very large folder.



      It's taking 99% of a CPU and it's been running for more than 40 minutes now.



      I've tried to kill docker (docker kill), but it hanged, now I can't get inside docker anymore:



      root@server:~# docker exec -ti containername bash
      oci runtime error: exec failed: container_linux.go:265: starting container process caused "process_linux.go:84: executing setns process caused "exit status 15""


      How can I fix that without restarting the server ?










      share|improve this question















      I'm having a process on my server that I can't kill, even with kill -9.
      It's in R state in top and in ps, and it's running inside docker.



      It's a ls I've started in a very large folder.



      It's taking 99% of a CPU and it's been running for more than 40 minutes now.



      I've tried to kill docker (docker kill), but it hanged, now I can't get inside docker anymore:



      root@server:~# docker exec -ti containername bash
      oci runtime error: exec failed: container_linux.go:265: starting container process caused "process_linux.go:84: executing setns process caused "exit status 15""


      How can I fix that without restarting the server ?







      process docker kill






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 12 mins ago









      Rui F Ribeiro

      37.7k1475119




      37.7k1475119










      asked 25 mins ago









      blue112

      28739




      28739

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          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',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f478282%2fkill-a-process-inside-docker-in-a-r-state%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f478282%2fkill-a-process-inside-docker-in-a-r-state%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Peggy Mitchell

          Palaiologos

          The Forum (Inglewood, California)