Why are reboots comparatively slower when a docker container is running on Red Hat Enterprise Linux 7 ?

Solution Verified - Updated -

Issue

  • Why are reboots comparatively slower when a docker container is running on Red Hat Enterprise Linux 7 ?. System reboots are slower by 1 minute or higher when compared to a system that does not have a running container.

Container is created using the command

docker create -ti --privileged --name redhat_test registry.access.redhat.com/rhel:latest /sbin/init

and started using systemd unit file with the following contents'/etc/systemd/system/redhat_container.service'


[Unit] Description=redhat container After=docker.service network.service Requires=docker.service [Service] ExecStart=/usr/bin/docker start -a "redhat_test" ExecStop=/usr/bin/docker stop -t 15 "redhat_test" Restart=always RestartSec=10s TimeoutStartSec=0 TimeoutStopSec=130s [Install] WantedBy=multi-user.target

Environment

  • Red Hat Enterprise Linux 7
  • docker-1.12.6-32.git88a4867

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.