---
title: "Namespace"
url: https://www.daytona.com/definitions/n/namespace
---

# Namespace

A namespace gives a process a private view of one kind of resource, such as its own process IDs, network stack, mount table, hostname, or user IDs.

A namespace is a Linux kernel feature that wraps one kind of global resource so that processes inside get their own instance. Processes in a namespace see only what it contains. They cannot tell that anything else exists. The global resource still exists, and the host can see every namespace from outside. Some kinds of namespace nest inside others.

Namespaces change what a process can see, not how much it can use or which system calls it can make. They are therefore combined with control groups and system call filters to build a container. Without those limits, a process in its own namespace can still use all the memory and every core on the host. Namespaces are cheap to create compared with booting a machine, which helps containers start quickly.

A container is mostly a set of namespaces around a group of processes, so it has its own file system and process tree. To code inside a sandbox built this way, the container looks like a separate machine. Nothing new is booted, because the processes run on the host kernel like any others. Tools on the host still see them as ordinary entries in its process table.

## Related terms

- [Capabilities](https://www.daytona.com/definitions/c/capabilities.md)
- [Cgroup](https://www.daytona.com/definitions/c/cgroup.md)
- [Container](https://www.daytona.com/definitions/c/container.md)
- [Container runtime](https://www.daytona.com/definitions/c/container-runtime.md)
- [Docker](https://www.daytona.com/definitions/d/docker.md)
- [Process](https://www.daytona.com/definitions/p/process.md)
