Saturday, July 25, 2015

Docker Q&A

1. How to monitor the processes?

Process monitoring builtin.

2. Logging and log files.

Stdin and Stdout. Can be forwarded. Syslog and journald driver.

3. Storing and manipulating files.

Create volume.
docker run -v /foo

docker run -v /var/foo:foo

4. Do we need to rebuild the image if the code is changed?

See Docker Rails Dev Demo

5. Why set :bind, '' ? It does not work without this line.

6. How to run tests when the image is built?

  Dockerfile is not used to run unit tests.