Skip to content

Commit

Permalink
Merge pull request containers#17970 from TomSweeneyRedHat/dev/tsweene…
Browse files Browse the repository at this point in the history
…y/tutorup1

[CI:DOCS] Improve basic tutorial
  • Loading branch information
openshift-merge-robot authored Apr 3, 2023
2 parents 5190ab1 + b7a8e12 commit 9ca3dd3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docs/tutorials/podman_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ podman inspect -l | grep IPAddress\":
"IPAddress": "",
```

Note: The -l is a convenience argument for **latest container**. You can also use the container's ID instead
of -l.
Note: The -l or --latest option is a convenience argument for **latest container**. This option is not available with the remote Podman client; use the container name or ID instead.

### Testing the httpd server
As we do not have the IP address of the container, we can test the network communication between the host
Expand All @@ -60,7 +59,7 @@ curl http://localhost:8080
### Viewing the container's logs
You can view the container's logs with Podman as well:
```console
podman logs --latest
podman logs <container_id>
10.88.0.1 - - [07/Feb/2018:15:22:11 +0000] "GET / HTTP/1.1" 200 612 "-" "curl/7.55.1" "-"
10.88.0.1 - - [07/Feb/2018:15:22:30 +0000] "GET / HTTP/1.1" 200 612 "-" "curl/7.55.1" "-"
10.88.0.1 - - [07/Feb/2018:15:22:30 +0000] "GET / HTTP/1.1" 200 612 "-" "curl/7.55.1" "-"
Expand Down Expand Up @@ -126,7 +125,7 @@ curl http://<IP_address>:8080
### Stopping the container
To stop the httpd container:
```console
podman stop --latest
podman stop <container_id>
```
You can also check the status of one or more containers using the *ps* subcommand. In this case, we should
use the *-a* argument to list all containers.
Expand All @@ -137,7 +136,7 @@ podman ps -a
### Removing the container
To remove the httpd container:
```console
podman rm --latest
podman rm <container_id>
```
You can verify the deletion of the container by running *podman ps -a*.

Expand Down

0 comments on commit 9ca3dd3

Please sign in to comment.