Skip to content

Commit 59bae65

Browse files
authored
Merge pull request #18 from moisei/install-docker-on-container
install docker on jupyterhub container
2 parents 76aa995 + dff2a90 commit 59bae65

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Dockerfile.jupyterhub

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ RUN /opt/conda/bin/pip install \
88
oauthenticator==0.4.* \
99
dockerspawner==0.4.*
1010

11+
# install docker on the jupyterhub container
12+
RUN wget https://get.docker.com -q -O /tmp/getdocker && \
13+
chmod +x /tmp/getdocker && \
14+
sh /tmp/getdocker
15+
1116
# Copy TLS certificate and key
1217
ENV SSL_CERT /srv/jupyterhub/secrets/jupyterhub.crt
1318
ENV SSL_KEY /srv/jupyterhub/secrets/jupyterhub.key

docker-compose.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ services:
1212
image: jupyterhub
1313
container_name: jupyterhub
1414
volumes:
15-
# Bind Docker binary from host machine so we can invoke Docker commands
16-
# from inside container
17-
- "/usr/local/bin/docker:/usr/local/bin/docker:ro"
1815
# Bind Docker socket on the host so we can connect to the daemon from
1916
# within the container
2017
- "/var/run/docker.sock:/var/run/docker.sock:rw"

0 commit comments

Comments
 (0)