Glam Prestige Journal

Bright entertainment trends with youth appeal.

Could some one help me to understand the difference between:

VOLUME command in dockerfile (image building layer)

and

-v paramter when issuing docker run-v /xyz/bla` command (container building layer).

-v parameter is for me clear, it simply exposes a directory from the host to the container and vice versa, but how does VOLUME in dockerfile behave differently?

1 Answer

According to Sir Carlos Rafael Ramirez

The difference between the is just that in case of docer run -v we can specify the destination on the host, but we cannot do that with VOLUME in Dockerfile.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy