Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. # Docker Stuff
  2.  
  3. It provides all the files and code your container will need. Running the docker build command creates
  4. a Docker image using the Dockerfile. This built image is in your machine's local Docker image registry
  5.  
  6. Create Docker image with name with path to docker file
  7. ```
  8. docker build -t <username>/<name-of-image> ./path/to/Dockerfile
  9. ```
  10. Running a container launches your software with private resources, securely isolated from the rest of your machine.
  11.  
  12. Run a container:
  13. ```
  14. docker run -it --rm dmcaodha/cheers2019
  15. ```
  16.  
  17. Login and share to Docker Hub
  18. ```
  19. docker login &&
  20. docker push dmcaodha/cheers2019
  21. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement