Creating your first Docker Image

Building a Dockerfile

We’ll start by opening our Power Shell as Admin user, next we’ll create new image directory: $ mkdir my-first-docker-image

Building our Docker Image

In this step we’ll use the Docker build command to build our Docker Image.
General command syntax: $ docker build [OPTIONS] PATH | URL | -

Last step, building our container from our Docker Image

What we have left is to start-up our Container. In order to do so, we’ll use the docker run command:

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Taly Kishon

Taly Kishon

All about Technologies, Programming & DevOps