-
Notifications
You must be signed in to change notification settings - Fork 1
September 2017
- A Dockerfile can consist of a single line:
FROM ubuntu - To build the image from a
Dockerfilein the current directory:docker build . - To run an image:
docker run --rm -it ccc7a1, whereccc7a1is any part of the hash for a given image (list the available images withdocker images) - Example:
docker run --rm -it python:3.6-
--rmmeans destroy when done -
-itmeans interactive with terminal attached - We could do
-dto run in background
-
- Some images available:
library/fedora,alpine(small Linux) - Sign up for a docker id on their website
- Portainer can be used to get a Web interface to your local Docker images
- Portainer instructs you to use the following command:
docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer-
-vallows file in
-
- You can run the basic Docker Hello World with
docker --rm -it hello-world- If you don't do the slash with
hello-world, then it goes to the library online.
- If you don't do the slash with
- To exit Docker container: exit
-
docker ps(see what's running) -
docker pull hello-world(no slash - library/, it's what Docker people themselves maintain) - Adds
:latestif you don't do a version number (meaning e.g.:14.04for Ubuntu Trusty) -
docker ps -a(see what you already ran) -
docker images(show images) -
docker rmi 05a3(remove image, can use any part of the hash) - When we do run, it creates a container from the image.
docker logs
Dockerfile: a script that lets you build an image or container or whatever.
FROM ubuntu:14.04
then: docker build .
or docker build -f MyDockerfile .
Dockerfile is executed every time you build the image.
## Meeting Minutes [October 2017](https://github.com/HackMichiana/Organization/wiki/October-2017)
[September 2017](https://github.com/HackMichiana/Organization/wiki/September-2017)
[January 2018](https://github.com/HackMichiana/Organization/wiki/January-2018)
[February 2018](https://github.com/HackMichiana/Organization/wiki/February-2018)
[March 2018](https://github.com/HackMichiana/Organization/wiki/March-2018)
[April 2018](https://github.com/HackMichiana/Organization/wiki/April-2018)
[May 2018](https://github.com/HackMichiana/Organization/wiki/May-2018)
[June 2018](https://github.com/HackMichiana/Organization/wiki/June-2018)
[July 2018](https://github.com/HackMichiana/Organization/wiki/July-2018)
[March 2019](https://github.com/HackMichiana/Organization/wiki/March-2019)
[April 2019](https://github.com/HackMichiana/Organization/wiki/April-2019)
[June 2019](https://github.com/HackMichiana/Organization/wiki/June-2019)
[July 2019](https://github.com/HackMichiana/Organization/wiki/July-2019)
[August 2019](https://github.com/HackMichiana/Organization/wiki/August-2019)