Skip to content

WeiliangChenOIST/ocnc2017_software

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker image for OCNC 2017

If you have any issue using the image please email me.

Installation

  1. Install Docker (for MacOS, Windows, and Ubuntu).

  2. Start Docker.

  3. If you are using Windows, also turn on drive sharing.

  4. Open a terminal (or PowerShell for Windows), choose or create a directory which you would like to share your data between your host system and the docker virtual system, for example c:\docker_shared (Windows) or $HOME/docker_shared (Mac/Linux), and go to the above directory

    (Windows)

    md c:\docker_shared
    cd c:\docker_shared

    (Mac/Linux)

    mkdir $HOME/docker_shared
    cd $HOME/docker_shared
  5. Download the docker image by entering the following in the terminal.

    docker pull wchenoist/ocnc2017_software
  6. Initialize your own docker container (virtual system) with the image in a terminal. Note: Repeat this command will initialize another copy of the image system.

    docker run -it -d -p 5901:5901 -p 6901:6901 -e  VNC_RESOLUTION=1360x768 -v ${PWD}:/headless/Documents/Docker_shared --user 1984 --name ocnc_vm wchenoist/ocnc2017_software

Use the system

  1. Once the container is started, you can access the system via http://localhost:6901/?password=vncpassword from any browser that supports HTML5 (Chrome 8, Firefox 4, Safari 6, Opera 12, IE 11, Edge 12, etc.)

  2. The system remains online even if you close your browser tab, to stop the system, use the following command in your host machine terminal.

    docker stop ocnc_vm

    To restart the same system and continue your work, use the following command

    docker restart ocnc_vm
  3. If you mess up the virtual system and want to restart from zero, stop and remove the current container,

    docker stop ocnc_vm
    docker rm ocnc_vm

    then initialize a new one

    docker run -it -d -p 5901:5901 -p 6901:6901 -e  VNC_RESOLUTION=1360x768 -v ${PWD}:/headless/Documents/Docker_shared --user 1984 --name ocnc_vm wchenoist/ocnc2017_software
  4. By default, the directory for initializing the docker container, e.g. c:\docker_shared (Windows) or $HOME/docker_shared (Mac/Linux), is mounted as $HOME/Documents/Docker_shared in the virtual system, anything put in this directory can be shared between the host and the virtual system.

  5. Software with Python interfaces (NEURON, NEST, Brian, STEPS) can be accessed using Jupyter notebook, you can find it as well as other useful tools in Desktop->Applications.

  6. The size of the desktop is 1360x768. If you want to change this, change VNC_RESOLUTION=1360x768 to whichever size you want. For 13-inch laptop, you can try VNC_RESOLUTION=1250x590.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published