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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content