Merge pull request #18 from moisei/install-docker-on-container

install docker on jupyterhub container
This commit is contained in:
Justin Tyberg 2016-08-18 08:26:59 -04:00 committed by GitHub
commit 59bae65012
2 changed files with 5 additions and 3 deletions

View File

@ -8,6 +8,11 @@ RUN /opt/conda/bin/pip install \
oauthenticator==0.4.* \
dockerspawner==0.4.*
# install docker on the jupyterhub container
RUN wget https://get.docker.com -q -O /tmp/getdocker && \
chmod +x /tmp/getdocker && \
sh /tmp/getdocker
# Copy TLS certificate and key
ENV SSL_CERT /srv/jupyterhub/secrets/jupyterhub.crt
ENV SSL_KEY /srv/jupyterhub/secrets/jupyterhub.key

View File

@ -12,9 +12,6 @@ services:
image: jupyterhub
container_name: jupyterhub
volumes:
# Bind Docker binary from host machine so we can invoke Docker commands
# from inside container
- "/usr/local/bin/docker:/usr/local/bin/docker:ro"
# Bind Docker socket on the host so we can connect to the daemon from
# within the container
- "/var/run/docker.sock:/var/run/docker.sock:rw"