Skip to content

Commit 419aed1

Browse files
authored
Merge pull request #292 from nabenabe0928/fix-docker-recipe
Adapt docker recipes to Python 3.11
2 parents 0c6999a + e178311 commit 419aed1

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,11 @@ Our Docker images for most examples are available with the tag ending with `-dev
181181
For example, [PyTorch Simple](./pytorch/pytorch_simple.py) can be run via:
182182

183183
```bash
184-
$ docker run --rm -v $(pwd):/prj -w /prj optuna/optuna:py3.7-dev python pytorch/pytorch_simple.py
184+
$ docker run --rm -v $(pwd):/prj -w /prj optuna/optuna:py3.11-dev python pytorch/pytorch_simple.py
185185
```
186186

187187
Additionally, our visualization example can also be run on Jupyter Notebook by opening `localhost:8888` in your browser after executing the following:
188188

189189
```bash
190-
$ docker run -p 8888:8888 --rm optuna/optuna:py3.7-dev jupyter notebook --allow-root --no-browser --port 8888 --ip 0.0.0.0 --NotebookApp.token='' --NotebookApp.password=''
190+
$ docker run -p 8888:8888 --rm optuna/optuna:py3.11-dev jupyter notebook --allow-root --no-browser --port 8888 --ip 0.0.0.0 --NotebookApp.token='' --NotebookApp.password=''
191191
```

kubernetes/mlflow/Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
# NOTE(crcrpar): optuna/optuna:py3.7-dev can be used as base instead.
2-
FROM python:3.7-slim-buster
2+
FROM python:3.11-slim
33

44
WORKDIR /usr/src/
55

66
RUN pip install --no-cache-dir optuna psycopg2-binary mlflow \
7-
&& pip install --no-cache-dir \
8-
torch==1.10.0+cpu \
9-
torchvision==0.11.1+cpu \
10-
-f https://download.pytorch.org/whl/torch_stable.html \
7+
&& pip install --no-cache-dir torch torchvision \
8+
--index-url https://download.pytorch.org/whl/cpu \
119
&& pip install pytorch-lightning
1210

1311
COPY pytorch_lightning_distributed.py .

kubernetes/simple/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.7-slim-buster
1+
FROM python:3.11-slim
22

33
WORKDIR /usr/src/
44

0 commit comments

Comments
 (0)