Merge pull request #18 from moisei/install-docker-on-container
install docker on jupyterhub container
This commit is contained in:
commit
59bae65012
@ -8,6 +8,11 @@ RUN /opt/conda/bin/pip install \
|
|||||||
oauthenticator==0.4.* \
|
oauthenticator==0.4.* \
|
||||||
dockerspawner==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
|
# Copy TLS certificate and key
|
||||||
ENV SSL_CERT /srv/jupyterhub/secrets/jupyterhub.crt
|
ENV SSL_CERT /srv/jupyterhub/secrets/jupyterhub.crt
|
||||||
ENV SSL_KEY /srv/jupyterhub/secrets/jupyterhub.key
|
ENV SSL_KEY /srv/jupyterhub/secrets/jupyterhub.key
|
||||||
|
@ -12,9 +12,6 @@ services:
|
|||||||
image: jupyterhub
|
image: jupyterhub
|
||||||
container_name: jupyterhub
|
container_name: jupyterhub
|
||||||
volumes:
|
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
|
# Bind Docker socket on the host so we can connect to the daemon from
|
||||||
# within the container
|
# within the container
|
||||||
- "/var/run/docker.sock:/var/run/docker.sock:rw"
|
- "/var/run/docker.sock:/var/run/docker.sock:rw"
|
||||||
|
Loading…
Reference in New Issue
Block a user