It's a simple python app using docker.
58
docker build . -t actionanand/python-bmi-app:tagname
docker pull actionanand/python-bmi-app
or
docker pull actionanand/python-bmi-app:tagname
docker run -it --rm --name python-bmi-app actionanand/python-bmi-app:tagname
docker tag local-image:tagname new-repo:tagname
docker push actionanand/python-bmi-app:tagname
docker ps: List all running containers
-a : List all containers - including stopped onesdocker images : List all locally stored imagesdocker stop my_container : Stops the running container with the name 'my_container' or IDdocker rm CONTAINER : Remove a container with name CONTAINER (you can also use the
container id). You can use multiple container name or ID followed by white space. SO docker rm CONTAINER_1 CONTAINER_2 CONTAINER_3docker rmi IMAGE : Remove an image by name / id. You can use multiple image name or ID followed by white space.docker container prune : Remove all stopped containersdocker image prune : Remove all dangling images (untagged images)
-a : Remove all locally stored imagesdocker attach container_name: Will attach the container againdocker logs container_name: Will print logs by the container
-f : follow tag will attach it again to print the future logs in terminalContent type
Image
Digest
sha256:789eb8860…
Size
357.8 MB
Last updated
almost 3 years ago
docker pull actionanand/python-bmi-app:1