Tuesday, February 8, 2022

Docker: Comments in a DockerFile

Comments can be added to a Dockerfile by placing a hashtag (#) before each line containing a comment. Below is a Dockfile containing comments. The Dockerfile was created automatically by Visual Studio 2022 for a .NET 6, ASP.NET Core Web App when the "Enable Docker" checkbox was checked during project creation. Lines 1, 3, and 4 are comments:




 


No comments :

Post a Comment