Docker Images - BKJackson/BKJackson_Wiki GitHub Wiki

Helpful image tools

dive - A tool for exploring a docker image, layer contents, and discovering ways to shrink your Docker image size.

Building a Docker image with a tag

docker build -t jupyter/scipy-notebook/wp:1.0.1 

Dockerfile tips

Installing a module directly from the git repo

RUN pip install git+git://github.com/Theano/Theano.git --upgrade --no-deps  

Copy file from host computer into docker container

ADD run_jupyter.sh /ds/run_jupyter.sh  
ADD <src> <dest>  

Installing with apt-get

Runs commands that you would type on the CLI on a Linux server.

RUN apt-get update && \
    apt-get install -y --not-install-recommends imagemagic && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*  

Identifying the file to run inside the container when it runs

CMD ["./run_jupyter.sh"]  

Articles

Creating and Using Docker images in development and production

⚠️ **GitHub.com Fallback** ⚠️