Useful Docker Commands
Useful Docker Commands
docker-compose up -d
This will tell Docker to fetch the latest version of the container from the
repo, and not use the local cache.
docker-compose up -d --force-recreate
This can be problematic if you’re doing CI builds with Jenkins and pushing
Docker images to another host, or using for CI testing. I was deploying a
Spring Boot Web Application from Jekins, and found the docker container
was not getting refreshed with the latest Spring Boot artifact.
Remove a Service
docker service rm <service name>