How can I create volume via Dockerfile?

  docker, docker-compose, dockerfile

I am trying to find a way how to execute docker command

docker volume create postgres-data

in Dockerfile, any ideas? Or I am allowed to do that only by terminal?

Source: Docker Questions

LEAVE A COMMENT