Ben Chuanlong Du's Blog

It is never too late to learn.

Save Docker Image in Another Location

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Docker images are saved in /var/lib/docker. You can link the directory to another place to save images elsewhere. Another way is to change the configuration file of Docker. For …

Docker on Mac

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. It is suggested that you install the offical docker app on Mac instead of installing docker using MacPorts/Homebrew. Docker installed using MacPorts/Homebrew might have issues to start.

  2. By default …

User in Docker

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

User switching in Docker

  1. USER some_user in Dockerfile, some_user has to exists
  2. su in Dockerfile or shell scripts
  3. docker run --user some_user

@pedrolucasoliva i am docker specialist i give you a …