5.14. Stopping containers


Use the podman stop command to stop a running container. You can specify the containers by their container ID or name.

Prerequisites

  • The container-tools meta-package is installed.
  • At least one container is running.

Procedure

  • Stop the myubi container:

    • By using the container name:

      $ podman stop myubi
    • By using the container ID:

      $ podman stop 1984555a2c27

      To stop a running container that is attached to a terminal session, you can enter the exit command inside the container.

      The podman stop command sends a SIGTERM signal to terminate a running container. If the container does not stop after a defined period (10 seconds by default), Podman sends a SIGKILL signal.

      You can also use the podman kill command to kill a container (SIGKILL) or send a different signal to a container. Here is an example of sending a SIGHUP signal to a container (if supported by the application, a SIGHUP causes the application to re-read its configuration files):

      # podman kill --signal="SIGHUP" 74b1da000a11
      74b1da000a114015886c557deec8bed9dfb80c888097aa83f30ca4074ff55fb2

      For more information, see the podman-stop(1) and podman-kill(1) man pages on your system.

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部