- Running a command inside a container also shows up on the host
- But the PID’s are different.
- Filesystems are stored in
/var/run/docker
# run ubuntu docker container
> docker run -it ubuntu
# show processes
> top
# start container again (shell history is preserved)
> docker start -ia myname
- Podman supports running container in containers without being priviledged
# run docker container with all syscall priviledges
> docker run --privileged
# set memory
docker run -m "400m"
docker run -c "0.5" # whole cpu
docker run --ulimit "512:1024" # File limit 512 (soft), 1024 (hard)