File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,26 @@ if you just want to build it run:
48
48
mvnw package
49
49
```
50
50
51
+ ## Build container image from Dockerfile and run locally
52
+ To build the container image from Dockerfile and run locally using docker:
53
+
54
+ ```
55
+ docker build --platform=linux/amd64 -t openliberty-gettingstarted:<TAG> .
56
+ docker images --filter reference=openliberty-gettingstarted
57
+ sudo podman run --platform=linux/amd64 -t -i -p 127.0.0.1:9080:9080 openliberty-gettingstarted:<TAG>
58
+ ```
59
+
60
+ To build the container image from Dockerfile and run locally using podman:
61
+
62
+ ```
63
+ podman build --platform=linux/amd64 -t openliberty-gettingstarted:<TAG> .
64
+ podman images --filter reference=openliberty-gettingstarted
65
+ sudo podman run --platform=linux/amd64 -t -i -p 127.0.0.1:9080:9080 openliberty-gettingstarted:<TAG>
66
+ ```
67
+
68
+ ### Access the application
69
+ Open a browser to http://localhost:9080
70
+
51
71
## Run the Sample in a container
52
72
53
73
To run the sample using docker run:
You can’t perform that action at this time.
0 commit comments