How it works
- a container is a process
Attaching to Container
Since I leave containers running in some cases for regular usage, I need to be able to enter and exit the container.
1 docker attach CONTAINER
Note: There is also nsenter which I should look at again.
It seems that the way to do this is ctrl+p, ctrl+q.
Building a container simply creates an image which can then be used to launch a specific instance of a container.
Assuming the current directory contains the Dockerfile
1 docker build -t NAME:TAG .