Install docker on debian stretch [9]

# apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common # curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add – # add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable” # apt-get update # apt-cache policy docker-ce # apt-get install docker-ce

DOCKER| ENTRYPOINT vs. CMD

O.K…. Lets start. ;) Variables passed as arguments to the container using -e will be part of containers environment. ENTRYPOINT script will be executed using this environment. Any CMD will be passed as an argument to the running ENTRYPOINT script. If there is no ENTRYPOINT defined, CMD will be executed instead. In other words: ENTRYPOINT […]