Below you will find pages that utilize the taxonomy term “docker”
Posts
ENTRYPOINT Vs CMD in Docker
CMD Vs Entrypoint is a bit confusing at the beginning. When should you use CMD and when should you use ENTRYPOINT while building your docker images?
CMD
This is the command that runs when you start a container.
Eg:
cmd-docker
FROM ubuntu CMD [ "echo" , "this is running from CMD which runs when the container starts" ] Building an image:
docker build -t cmd-docker -f cmdvsentrypoint.yaml .
Default docker run:
read morePosts
Infrastructre as Code (IaC)
How it came to be? Traditionally setting up infrastructure for the code to run (think: servers, network configurations, etc) has been a manual task.
People started using SOP (Standard Operating Procedure) in order to mitigate errors and risk (by listing down all the actionable items) but it’s still error-prone.
Enter, Infrastructure as code.
This is an attempt to abstract the tangible aspects of software (hardware it runs on, configurations and network it uses, etc).
read more