From Stu2
Jump to navigation Jump to search
docker image build -t stu2labs/quagga ./          Create directory, add Dockerfile, add any other include files for COPY, then build image
docker images                                     List images
docker ps -a                                      List containers
docker container prune                            Delete all stopped containers
docker tag imageID new/repo:tag                   Add a tag to the image
docker tag local-image:tagname new/repo:tagname   Change the tag
docker push new/repo:tagname                      Push the image up to docker hub
docker run --rm -t -d --name NAME new/repo:tagname        run the container