Rebooting within docker container actually reboots the host

Run docker container with:

docker run -i -t --net host image_id /bin/bash

Then execute reboot. It will actually reboot not the container but the host. This is a potential security problem.

Removing the "--net host" argument, the result is correct:

shutdown: Unable to shutdown system