From 3e687f1a8ccb1cd0d52a966005551d528ca141df Mon Sep 17 00:00:00 2001 From: Boris Verkhovskiy Date: Sat, 6 Apr 2024 08:33:50 -0700 Subject: Remove leading and trailing empty lines in code blocks --- docker.html.markdown | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'docker.html.markdown') diff --git a/docker.html.markdown b/docker.html.markdown index ec6abe7e..6853451f 100644 --- a/docker.html.markdown +++ b/docker.html.markdown @@ -78,6 +78,7 @@ architecture wherein the CLI client communicates with the server component, which here is, the Docker Engine using RESTful API to issue commands. ## The Docker CLI + ```bash # after installing Docker from https://docs.docker.com/get-docker/ # To list available commands, either run `docker` with no parameters or execute @@ -200,6 +201,7 @@ $ docker logs # More commands can be found at https://docs.docker.com/engine/reference/commandline/docker/ ``` + ## The Dockerfile The Dockerfile is a blueprint of a Docker image. We can mention the artifacts from our application along with their configurations into this file in the @@ -239,12 +241,12 @@ CMD [,...] # This executes after image creation only when the container from the image # is running. ``` + ### Build your images Use the `docker build` command after wrapping your application into a Docker image to run ( or build) it. ```bash - $ docker build # used to build an image from the specified Dockerfile # instead of path we could also specify a URL @@ -277,5 +279,4 @@ $ docker push [:] # e.g. `docker push akshitadixit/my-sample-app` # this image will be accessible under your profile's repositories as # `https://hub.docker.com/r/username/image-name` - ``` -- cgit v1.2.3