Skip to content

wangzz313/visdom-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Visdom Build statusWe love open source

Docker image

If you want to run visdom server by a docker container this is for you.

Build your own image

Not all versions of original project are released, so if you want to build a particular version (I mean "commit-ish") of sources then update the commitish file:

$ docker build -t hypnosapos/visdom:$(cat commitish)

Default version of python is 3.6 (build arg PY_VERSION) and distribution is slim-stretch (build arg DIST), thus add your custom values if your want other base docker image, here an example:

$ docker build --build-arg PY_VERSION=3.5 --build-arg DIST=slim -t hypnosapos/visdom:3.5-slim-$(cat commitish)

Play

Before running the container take a look at the following env variables ( -e NAME=VALUE):

Name Default
PORT 8097
ENV_PATH $HOME/.visdom
LOGGING_LEVEL INFO
HOSTNAME localhost
BASE_URL /
READONLY True
ENABLE_LOGIN False
FORCE_NEW_COOKIE False

Now we're ready to run the container

$ docker run -it -p 8097:8097 [-e NAME=VALUE] hypnosapos/visdom:latest

In order to preserve data or sessions we recommend you attach a volume to persist them (obviously):

$ docker run -it -v <path>:<env_path> -p 8097:8097 -e ENV_PATH=<env_path> hypnosapos/visdom:latest

Using default values, server would be ready at http://localhost:8097

Trying visdom

To play with some examples we recommend you try:

docker run -d -p 8097:8097 --name visdom hypnosapos/visdom:latest
docker exec -it visdom bash -c "python /root/visdom/example/demo.py"

And then check out examples at: http://localhost:8097

I hope it helps 😆 !!

About

Visdom Docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 55.9%
  • Dockerfile 44.1%