NO.Idea

Docker

Installation#

docker [docker-compose](https://docs.docker.com/compose/install/_

Post-nstallation#

Execute commands without sudo.

Docker Compose#

properties:

  • volumes

    • './dir:/' 会在当前目录自动创建 dir 文件夹

    • 'myVol:/' 辅以以下命令,会在 /var/lib/docker/volumes 创建 volume,但会被 docker-compose down -v --remove-orphans 清除。

Dockerfile#