LoginSignup
1
1

More than 5 years have passed since last update.

KerasをDockerで構築

Last updated at Posted at 2018-05-14

インストール

$ docker pull gw000/keras-full

確認

$ docker images

REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
gw000/keras-full    latest              xxxxxxxxx        2 months ago        11.1GB

実行

docker run -i -p 8888:8888 -v (pwd):/srv -t gw000/keras-full /bin/bash

これで実行時のディレクトリがdocker上の/srvにリンクされます。

実行中のkeras確認

docker ps -a

CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS                    NAMES
xxxxxxxx        gw000/keras-full    "/bin/bash"         9 hours ago         Up 9 hours          0.0.0.0:8888->8888/tcp   stupefied_curran

実行中のコンテナに入る

docker exec -it xxxxxxxxx /bin/bash

xxxxxxxxx: コンテナID

jupyter実行

jupyter notebook ./main.ipynb --ip 0.0.0.0 --no-browser --allow-root

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1