Skip to main content

Posts

Showing posts from June, 2020

Running a docker container in host network namespace

Docker is utilizing network namespaces of Linux to provide the isolation for the containers. However, it is possible to define in which network namespace the container should be running. Hence, we can also get a container running in the host network. docker run --name hostbusybox --network=host busybox Since the above container is running in the host network, the interface of the container can be seen with the following command ip addr list