UTS namespaces deal with hostnames and domain names.
If we isolate the UTS namespace of a process, its host name becomes independent from the hostname of the machine on which it runs.

We could see UTS namespace isolation in the case of docker.

We create a debian container for example and we give it the name "debian-host" as its hostname, as we can see below:


We gave the container a hostname from the host's UTS namespace, but docker created its own UTS namespace with a different hostname.

When we use the following parameter "--uts=host", we could change the host's name from within the container, because in that case the container and the host share the same UTS namespace:


Brando Sabatini and Ikbal C ©. Powered by Blogger.