I was surfing on the internet but could not find a good tutorial on content which will help understand the usage of the docker compose cli commands. Now the question is if we have a docker desktop why should we learn cli commands ? It is because now that we are seeing a lot of left shifting of the responsibilities on the developers including DevOps. Hence we should know how to manage, debug and check the environment servers which may not have a docker desktop sort of GUI. Another question would be if we have docker cli commands then why should we learn the docker compose cli commands ? It is because docker cli commands are more general level and docker compose commands work at a docker compose level. Meaning a folder which has a docker-compose.yml file. The docker compose CLI commands are applicable for that scope. Another reason is it simplifies the services and container management at the compose level. One key point to be noted is we should remember the fact that docker compose containers and services (i.e. the ones defined in the docker-compose.yml file) run in an isolated scope hence service container A defined in docker compose yaml file A cannot directly interact with the service container B defined in the docker compose yaml file B.
I will be documenting my learnings as step by step tutorial guide for you to understand and use the same. I will be doing so while I am learning these commands so that it is shared experience for a new person.
Comments
Post a Comment