Skip to content
Dockerized Swift for TensorFlow with Jupyter and GPU Support.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
swift-jupyter @ 436fd41
.editorconfig
.gitmodules
.travis.yml
LICENSE
README.md

README.md

docker-swift-tensorflow

Build Status Docker Pulls Docker Layers

dockeri.co

Dockerized Swift for TensorFlow with Jupyter and GPU Support.

Usage

CLI

nvidia-docker run -ti --rm \
  --privileged \
  --userns=host \
  \
  -v "$(pwd)":/notebooks \
  --entrypoint /bin/bash \
  zixia/swift

--privileged and --userns=host might be required for some docker deamon configuration. (see this issue)

Jupyter

nvidia-docker run -ti --rm \
  -p 8888:8888 \
  --cap-add SYS_PTRACE \
  -v "$(pwd)":/notebooks \
  zixia/swift

The functions of these parameters are:

  • -p 8888:8888 exposes the port on which Jupyter is running to the host.
  • --cap-add SYS_PTRACE adjusts the privileges with which this container is run, which is required for the Swift REPL.
  • -v <host path>:/notebooks bind mounts a host directory as a volume where notebooks created in the container will be stored. If this command is omitted, any notebooks created using the container will not be persisted when the container is stopped.

Develop

Testing

After building the docker image according to the instructions above,

docker run --rm \
  --cap-add SYS_PTRACE \
  zixia/swift \
  python3 /swift-jupyter/test/all_test_docker.py

History

v0.1 (22 Aug 2019)

Init version based on Swift-Jupyter, working under Ubuntu 19.04 without any problem.

Resources

Author

Huan (李卓桓) <zixia@zixia.net>

profile for zixia at Stack Overflow, Q&A for professional and enthusiast programmers

Copyright & License

  • Code & Docs © 2018 - now Huan LI <zixia@zixia.net>
  • Code released under the Apache-2.0 License
  • Docs released under Creative Commons
You can’t perform that action at this time.