Started a container with docker run using –latest tag. How to update it now?

  Kiến thức lập trình

A year ago I started the container with:

docker run --name my_gluetun --cap-add=NET_ADMIN -e VPN_SERVICE_PROVIDER="private internet access" 
-e OPENVPN_USER=abc -e OPENVPN_PASSWORD=xyz 
-v gluetun:/gluetun 
-e SERVER_REGIONS="US West" qmcgaw/gluetun

I want to make sure it is the “most recent latest” image, and not the latest from a year ago. With docker compose I would have:

docker compose pull
docker compose up -d --remove-orphans
docker image prune -f

What is an equivalent procedure?

LEAVE A COMMENT