summaryrefslogtreecommitdiffhomepage
path: root/docker.html.markdown
diff options
context:
space:
mode:
authorAbirama Krishnan <abiram11@outlook.com>2023-12-14 21:06:05 +0530
committerGitHub <noreply@github.com>2023-12-14 16:36:05 +0100
commit51900f18386825917c4b0c4da3319dfb0b2a9507 (patch)
tree7c298d7617797af4fd3b03bceb36d837193116e1 /docker.html.markdown
parent6cf903f44ef9b516ad7cf01aa1fa186641033a71 (diff)
Update docker.html.markdown with added spaces for clarity (#4807)
Diffstat (limited to 'docker.html.markdown')
-rw-r--r--docker.html.markdown12
1 files changed, 6 insertions, 6 deletions
diff --git a/docker.html.markdown b/docker.html.markdown
index 0e61151e..17f803f4 100644
--- a/docker.html.markdown
+++ b/docker.html.markdown
@@ -187,7 +187,7 @@ $ docker exec -it 7b272 bash
# directory. Here 7b272 was our ubuntu container and the above command would
# help us interact with the container by opening a bash session.
-$docker logs <container-id>
+$ docker logs <container-id>
# Displays the information logged by the specified container
# root@7b27222e4bb7:/# whoami
# root
@@ -245,11 +245,11 @@ image to run ( or build) it.
```bash
-$docker build <path-to-dockerfile>
+$ docker build <path-to-dockerfile>
# used to build an image from the specified Dockerfile
# instead of path we could also specify a URL
# -t tag is optional and used to name and tag your images for e.g.
-# `$docker build -t my-image:0.1 ./home/app`
+# `$ docker build -t my-image:0.1 ./home/app`
# rebuild images everytime you make changes in the dockerfile
```
@@ -264,15 +264,15 @@ as part of the source image name. We need to create the target image with the
tag name of username/image-name much like GitHub repositories.
```bash
-$docker login
+$ docker login
# to login to Docker Hub using your username and password
-$docker tag <src-image>[:<src-tag>] <target-image>[:<target-tag>]
+$ docker tag <src-image>[:<src-tag>] <target-image>[:<target-tag>]
# this tags a local src-image to a public target-image
# e.g. `docker tag my-sample-app:1.0.0 akshitadixit/my-sample-app`
# if tags are not specified, they're defaulted to `latest`
-$docker push <target-image>[:<target-tag>]
+$ docker push <target-image>[:<target-tag>]
# uploads our image to Docker Hub
# e.g. `docker push akshitadixit/my-sample-app`
# this image will be accessible under your profile's repositories as