You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notice that the name of the image is `nodeapp-express-node-app`. This is because the `build` key in the `docker-compose.yml` file uses the current directory name with the service name to name the image.
Copy file name to clipboardExpand all lines: DevOps/Docker/docker-file.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,7 @@ CMD ["npm", "start"]
100
100
101
101
- `npm install` installs all the dependencies listed in the `package.json` file. If the `package.json` file has not changed since the last build, Docker will use the cached layer for that step and not execute the `npm install` command again. This speeds up the build process.
Copy file name to clipboardExpand all lines: DevOps/Docker/docker-hot-reload.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ Notice that `-v` must be followed by the **absolute path** of the directory on t
43
43
44
44
When you use the `-v` flag to mount a local directory into the container, it overrides the content of the container's directory with the content from your local directory. This means that even if files are ignored during the build process, they will still appear in the container if they exist in the mounted directory.
@@ -62,7 +62,7 @@ Docker networks configure how containers communicate both with each other and wi
62
62
63
63
- Port mapping does not take effect when using the none network driver. `-p` option is ignored. The container is isolated from the network and cannot communicate with the host machine or other containers.
@@ -87,7 +87,7 @@ Docker networks configure how containers communicate both with each other and wi
87
87
- Here is how the default bridge network looks like:
88
88
- At start up, Docker engine finds an unused network subnet on the docker host (normally 172.17.0.0/16), and assigns the first IP address of that network (normally 172.17.0.1) to the default bridge - docker0.
89
89
- When you start a container, Docker assigns an IP address from the subnet to the container. The container can communicate with other containers on the same bridge network using this IP address.
@@ -142,7 +142,7 @@ dockerhost$ docker exec web ip addr show
142
142
- It has certain advantages most importantly, **service discovery.** Containers on the same user-defined bridge network can communicate with each other using their container names. This is because Docker provides a built-in DNS server that resolves container names to their IP addresses. This makes it easier to connect containers together without having to know their IP addresses.
143
143
> In the default bridge network, you have to use IP addresses to communicate between containers. There is no service discovery since there is no DNS server.
@@ -166,7 +166,7 @@ dockerhost$ docker exec web ip addr show
166
166
- No IP address is allocated to the container, it shares it with the host.
167
167
- Port-mapping does not take effect. “-p”, and “-P” options are ignored. Whatever the port of the application inside the container, it is available as-is on the host’s IP address.
Copy file name to clipboardExpand all lines: DevOps/Docker/dockerize-some-apps-on-github.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
-
title: "Dockerize some apps on Github"
3
-
author: "Salma Ayman"
2
+
title: Docker
3
+
author: Salma Ayman
4
4
---
5
5
6
6
I will pick some random apps from Github and Dockerize them. This will help me gain more experience with Docker and also learn how to Dockerize different types of applications.
Copy file name to clipboardExpand all lines: DevOps/Docker/index.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,11 +5,11 @@ author: "Salma Ayman"
5
5
6
6
My learning diary for Docker.
7
7
8
-

8
+

9
9
10
10
## Before you start
11
11
12
-
-**Linux Users**: Installing Docker is a breeze with your package manager. If you’re an Arch Linux user like me, check out my guide to [installing Docker on Arch Linux](arch-linux-installation.md).
12
+
-**Linux Users**: Installing Docker is a breeze with your package manager. If you’re an Arch Linux user like me, check out my guide to [installing Docker on Arch Linux](/imgs/DevOps/Docker/arch-linux-installation.md).
13
13
14
14
-**Windows Users**: Oh, Windows users, bless your hearts. If only you could **switch to Linux** and save yourself some hassle!
15
15
@@ -48,7 +48,7 @@ My learning diary for Docker.
48
48
49
49
-[Sysadmin with Docker](https://hamk-sysadmin-docker.github.io/exercises/):This is also a good resource to practice Docker.
0 commit comments