diff options
author | Boris Verkhovskiy <boris.verk@gmail.com> | 2024-04-06 08:33:50 -0700 |
---|---|---|
committer | Boris Verkhovskiy <boris.verk@gmail.com> | 2024-04-06 08:33:50 -0700 |
commit | 3e687f1a8ccb1cd0d52a966005551d528ca141df (patch) | |
tree | 30d433ba19ec49808cc0f0de8a161835ad5f29c9 /docker.html.markdown | |
parent | 9fa4b5af80f1cd7fe2469c198d02a21e4f8884a1 (diff) |
Remove leading and trailing empty lines in code blocks
Diffstat (limited to 'docker.html.markdown')
-rw-r--r-- | docker.html.markdown | 5 |
1 files changed, 3 insertions, 2 deletions
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 <container-id> # 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 [<args>,...] # 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 <path-to-dockerfile> # used to build an image from the specified Dockerfile # instead of path we could also specify a URL @@ -277,5 +279,4 @@ $ docker push <target-image>[:<target-tag>] # 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` - ``` |