Skip to content

Instantly share code, notes, and snippets.

@jhurliman
Created May 4, 2023 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhurliman/6ca72325af3234824a3f60c7085d6003 to your computer and use it in GitHub Desktop.
Save jhurliman/6ca72325af3234824a3f60c7085d6003 to your computer and use it in GitHub Desktop.
Run a tensorboard docker service
#!/usr/bin/env bash
docker run --init \
-d \
--restart unless-stopped \
--hostname jupiter.martian.ag \
--log-opt max-size=50m \
-p 6006:6006 \
-e DOCKER_USER=$(id -un) \
-e DOCKER_USER_ID=$(id -u) \
-e DOCKER_PASSWORD=$(id -un) \
-e DOCKER_GROUP_ID=$(id -g) \
-v "$(pwd)":/workdir \
-v "$(dirname $HOME)":/home_host \
dclong/tensorboard /scripts/sys/init.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment