Skip to content

Rebooting within docker container actually reboots the host #6401

@CooledCoffee

Description

@CooledCoffee

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions