Skip to content
Menu
vernon.wenberg.net
vernon.wenberg.net
Docker
March 19, 2025March 19, 2025

Docker Reference

  • Update Docker Compose image
  • Open a shell inside a container
  • View container logs

Update Docker Compose image

Make sure you are in the directory of your docker compose.

First, list running docker images

docker ps

Stop the docker you want to update

docker stop [image name]

Pull the latest version

docker compose pull

If you want to pull a certain version, use

docker compose pull [image]:[version-number]

Start the docker.

docker compose up -d

You can optionally remove old images.

docker image prune -f

Open a shell inside a container

docker exec -it [container name] sh

View container logs

docker logs [container name]

If you want to stream the logs, use -f as an argument

docker logs -f [container name]

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to print (Opens in new window) Print
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn

Like this:

Like Loading...

Related

Disclaimer

These posts are notes for me. These are not guides and you should not use these instructions as step-by-step instructions without knowing what they do.

Recent Posts

  • Configure acme.sh with PowerDNS
  • HPE Aruba-CX Notes
  • Docker Reference
  • Useful Commands for Windows Subsystem for Linux
  • FortiManager Local-In Policy

Mastodon

  1. Loading Mastodon feed...

©2025 vernon.wenberg.net | Powered by WordPress and Superb Themes!
%d