I'm using docker-compose to mange my container 'abc' in a linux server (centos).
my steps that I want to perofrm:
1) docker compose pull 'abc' in order to pull my latest image
docker-compose --file docker-compose.yml pull
2) docker command to check if my container 'abc' need to be updated (possible???)
3) if my container 'abc' I will perform docker-compose up -d
docker-compose --file docker-compose.yml up -d
Remark: I know that step 3 is checking and than update the container if necessary but I need to perform pre tasks if step 2 return True