A

Admin • 828.43K Points
Coach

Q. Which instruction in Dockerfile is best for setting environment variables?

  • (A) ARG
  • (B) ENV
  • (C) SET
  • (D) CMD

Explanation by: Admin
ENV sets environment variables that will persist when the container is running.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.