Docker on Windows: DockerFile

Once you are up and running with Docker on Windows… it is great! That’s an aside. Back to the job in hand.

So far, I have instantiated Containers from Images. I now wanted to play with DockerFile, which allows you to create Images. I briefly played with the Docker linux examples… but of course you have to get a bit twisted to make those work on Windows. I then went the Windows route, and followed these examples.

The key command is, imho:

docker build -f DockerFile .

Note that VSCode understands that this is a DockerFile:

 

DockerFile21.PNG

The code and PowerShell execution is from this DockerFile:

DockerFile22.PNG

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s