Docker

The following command runs a container with full privileges with Ubuntu system.

$ docker run -ti --rm --privileged=true ubuntu /bin/bash
When using volumes, the parameter :ro can be used to indicate the path to the declared volume:


$ docker run -v $(pwd) :/pwd:ro debian touch /pwd/x

Therefore, it is recommended to place the Dockerfile and necessary files in a separate directory. The Docker build command executes the instructions contained in the Dockerfile file one by one and displays their results.


$ docker build -t "test dockerfile" .