Skip to content

datadidit/docker-sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Sandbox

Notes

  • Video Tutorials

  • FROM: base image

  • RUN: commands to execute.

    • Each RUN instruction will executew the commond on the top writable layer and perform a commit of the image.

    • Aggregate multiple RUN instructions using '&&'

  • CMD: defualt commands to run when running the image

    • CMD ping 127.0.0.1 -c 30 #shell form

    • Also exec form TODO: add example…​

  • YOU CAN USER JUST A PORTION OF THE CONTAINERID ON STOP AND REMOVE

  • ENTRYPOINT: Same as CMD except it can’t be overridden

  • Connect to a running container: docker exec -it [containerid] <cmd>

  • Delete a local docker image

docker rmi [image ID] or docker rmi [repo:tag]
  • Docker Volumes

  • docker push didn’t work the first time, this link was helpful. Ended up needing to run:

docker login

prior to my push

About

Project for learning how to use docker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages