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
to do so I did nothing complicated, and just wrote a simple Dockerfile
14
14
15
-
This first Docker exploration might motivate some more experimented folks to move on this ? At least I hope this could help go a bit forward. I will continue my explorations.
15
+
This first Docker exploration might motivate some more experimented folks to move on this ? At least I hope this could help go a bit forward. I will continue my explorations.
16
+
17
+
## Build your own image
18
+
19
+
You can customise the provided simple Dockerfile and build your own image. To do so make sure you are in directory where Dockerfile is. And use docker basic command CLI:
20
+
```bash
21
+
docker build -t <your-prefered-image-name>.
22
+
```
23
+
24
+
## Run your own container from image
25
+
26
+
Once you have built your own imgage run your container for access through port 80 (http://localhost) like so:
27
+
```bash
28
+
docker run -t -i -p 8080:80 <your-prefered-image-name>
29
+
```
30
+
or alternatively you can choose to map same PORT as the container port 8080 (http://localhost:8080) like so:
31
+
```bash
32
+
docker run -t -i -p 8080:8080 <your-prefered-image-name>
to do so I did nothing complicated, and just wrote a simple Dockerfile
14
14
15
-
This first Docker exploration might motivate some more experimented folks to move on this ? At least I hope this could help go a bit forward. I will continue my explorations.
15
+
This first Docker exploration might motivate some more experimented folks to move on this ? At least I hope this could help go a bit forward. I will continue my explorations.
16
+
17
+
## Build your own image
18
+
19
+
You can customise the provided simple Dockerfile and build your own image. To do so make sure you are in directory where Dockerfile is. And use docker basic command CLI:
20
+
```bash
21
+
docker build -t <your-prefered-image-name>.
22
+
```
23
+
24
+
## Run your own container from image
25
+
26
+
Once you have built your own imgage run your container for access through port 80 (http://localhost) like so:
27
+
```bash
28
+
docker run -t -i -p 8080:80 <your-prefered-image-name>
29
+
```
30
+
or alternatively you can choose to map same PORT as the container port 8080 (http://localhost:8080) like so:
31
+
```bash
32
+
docker run -t -i -p 8080:8080 <your-prefered-image-name>
0 commit comments