Tag: dockerfile

57 votes
7 answers
2.2K views
How do I make a comment in a Dockerfile?

I am writing a Dockerfile. Is there a way to make comments in this file? Does Docker have a comment option th

avatar
Jefferey
0 1 0 9
asked 07 September, 2021
44 votes
30 answers
3.1K views
denied: requested access to the resource is denied : docker

I am following this link to create my first docker Image and it went successfully and now I am trying to push

avatar
Dwain
0 1 0 9
asked 07 September, 2021
56 votes
14 answers
1.3K views
How do I pass environment variables to Docker containers?

I'm new to Docker, and it's unclear how to access an external database from a container. Is the best

avatar
Louetta
0 1 0 9
asked 07 September, 2021
57 votes
16 answers
597 views
What is the difference between the 'COPY' and 'ADD' commands in a Dockerfile?

What is the difference between the COPY and ADD commands in a Dockerfile, and when would I use one over the ot

avatar
Hallie
0 1 0 9
asked 07 September, 2021