File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,6 +48,26 @@ if you just want to build it run:
4848mvnw package
4949```
5050
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 docker 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+
5171## Run the Sample in a container
5272
5373To run the sample using docker run:
You can’t perform that action at this time.
0 commit comments