0

I've a docker-compose with some dockerfiles. One of this dockerfiles has a shared volume with PHP project.

I'm trying to execute a command (RUN or CMD) fron docker file inside a shared volume/folder. But at time of dockerfile the shared volume seems not mounted and there aren't any files.

So the question is how i can execute a command on startup docker-container and be sure that all volumes are mounted?

Domenico Monaco
  • 1,236
  • 12
  • 21
  • 1
    Volumes are for running containers, unavailable during image build. Please share at least a part of your Dockerfile to see if something could work for you. – AymDev Sep 06 '22 at 08:25

0 Answers0