File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -48,21 +48,22 @@ 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:
51+ ## Build and Run Docker Container Locally
52+ ### Build the project
5353
5454```
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>
55+ ./mvnw package
5856```
5957
60- To build the container image from Dockerfile and run locally using podman:
58+ ### Build the Docker image
6159
6260```
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>
61+ docker build -t openliberty-gettingstarted .
62+ ```
63+ ### Run the Docker container
64+
65+ ```
66+ docker run -p 9080:9080 openliberty-gettingstarted
6667```
6768
6869### Access the application
You can’t perform that action at this time.
0 commit comments