Skip to content

Instantly share code, notes, and snippets.

@dan-mckay
Last active October 2, 2019 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dan-mckay/7212640f6c674529db63c8243ddec03a to your computer and use it in GitHub Desktop.
Save dan-mckay/7212640f6c674529db63c8243ddec03a to your computer and use it in GitHub Desktop.
Docker

Docker Stuff

It provides all the files and code your container will need. Running the docker build command creates a Docker image using the Dockerfile. This built image is in your machine's local Docker image registry

Create Docker image with name with path to docker file

docker build -t <username>/<name-of-image> ./path/to/Dockerfile

Running a container launches your software with private resources, securely isolated from the rest of your machine.

Run a container:

docker run -it --rm dmcaodha/cheers2019

Login and share to Docker Hub

docker login &&
docker push dmcaodha/cheers2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment