Open a specific shell inside a running container

crictl

  • Command-line for CRI-compatible container runtimes.
    More information: <https://github.com/kubernetes-sigs/cri-tools/blob/master/docs/crictl.md>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

crictl exec -it {{container_id}} {{sh}}

click the source code to copy install crictl on any operating system with command-not-found.com