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
Copy file name to clipboardExpand all lines: README.md
+28-2Lines changed: 28 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ This app is designed to run in different ways:
26
26
### running the app
27
27
28
28
After installing, run the server using `python app.py`
29
-
Access the running app in a browser at the URL written to the console (most likely [http://localhost:5000])
29
+
Access the running app in a browser at the URL written to the console (most likely [http://localhost:5000](http://localhost:50000))
30
30
31
31
## 2. As a Docker container running on your machine
32
32
@@ -35,7 +35,7 @@ Access the running app in a browser at the URL written to the console (most like
35
35
3. run `docker build -t flask-hello-world:latest .` to build the docker image
36
36
4.`docker images` list the local available images
37
37
5. run `docker run --name flask_hello_world -d -p 8000:5000 --rm flask-hello-world:latest` to start the container
38
-
6. Navigate to [http://localhost:8000] in a browser to see the results. If you want to share it with your local network devices navigate to http://[your-ip-address]:8000
38
+
6. Navigate to [http://localhost:8000](http://localhost:8000) in a browser to see the results. If you want to share it with your local network devices navigate to *http://[your-ip-address]:8000*
39
39
40
40
## 3. As a Docker image published in Docker Hub
41
41
@@ -64,3 +64,29 @@ To check the default organization and space to which you have access, go to <htt
64
64
8. to explore how your app directories are structured `bx cf ssh flask-hello-world`
65
65
66
66

67
+
68
+
## 5. Push a new image
69
+
70
+
Login to the docker.io using the access token
71
+
72
+
```bash
73
+
docker login -u ahmnouira docker.io
74
+
```
75
+
76
+
Build and tag
77
+
78
+
```bash
79
+
docker build -t flask-hello-world:latest .
80
+
```
81
+
82
+
Tag it as per the docker hub repository name
83
+
84
+
```bash
85
+
docker tag flask-hello-world:latest ahmnouira/flask-hello-world:latest
0 commit comments