As I started a set of cheatsheets before and the feedback was overwhelming I will continue to expand with some useful commands on docker container. Again I do not thrive to run this as a full blown tutorial, nor do I think this is a full command reference, this just summarizes commands I need again and again. And some of which I search again and again
Start the docker service on Photon OS
While docker comes preinstalled in Photon OS it still needs to be started and enabled before you can use it.
systemctl start docker
systemctl enable docker
Build docker container from Dockerfile
Move into the folder containing the Dockerfile and issue the following command:
dockerfile build . -t CONTAINERNAME:VERSION
Run docker container unless stopped / as a service
Sometimes we need to run docker container as a service and on a specific port.
docker run -dit -p 8080:8080 --restart unless-stopped CONTAINERNAME:VERSION
With more than 20 years of experience in the IT-Industry, Yves was – beside his work at the comdivision group – also involved with successfully bringing several (IT) startup companies to market. Yves was honoured several times by vendors and customers for his capability of transporting the highly technical IT concept to regular IT consumers using their language.