version 1.0.6
日本語 (in Japanese) |
---|
System Requirement Prepare Docker on ... Mac OSX Windows Linux |
Remote install of IAV from Docker Hub Local Install of IAV from Docker images |
Usage Top |
M-1. Install "Command Line Tools for Xcode".
$ xcode-select --installM-2. Install a package management system of "Homebrew".
http://brew.sh/index.html
(Link to other Website)$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"M-3. Update the package of Homebrew.
$ brew updateM-4. Install application of "VirtualBox".
$ brew upgrade
https://www.virtualbox.org/wiki/Downloads
(Link to other Website)$ brew install boot2docker dockerM-6. Upgrade Boot2Docker.
$ boot2docker upgradeM-7. Check the IP address assigned using the command of Boot2Docker.
$ boot2docker ip
W-1. Install application of "Windows Docker Client".
https://docs.docker.com/installation/windows/
(Link to other Website)
https://github.com/boot2docker/windows-installer/releases
(Link to other Website)
* Boot2Docker, Boot2Docker Management Tool, Docker, VirtualBox, msysGit are installed
W-2. Start Boot2Docker from the start menu.
W-3. Make a note of the IP address and PORT of DOCKER_HOST displayed at the time of starting.
LC-0. Install Docker from EPEL of Fedora in CentOS 6. (don't need after version 6.5)
$ sudo rpm -ivh http://ftp.riken.jp/Linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpmLC-1. Update package of yum.
$ sudo yum updateLC-2. Install Docker.
$ sudo yum install docker-io (in case CentOS 6)LC-3. Set up to start Docker at the time of boot of CentOS.
$ sudo yum install docker (in case CentOS 7)
$ sudo chkconfig docker onLC-4. Start Docker service.
$ sudo /etc/rc.d/init.d/docker startLC-5. Inspect an IP address,to access from a browser to a Web server. (Please check the docker0 using ifconfig command.)
C-0. Register your account into Docker Hub.
https://registry.hub.docker.com/
(Link to other Website)
C-1. If you encounter the message of "Cannot connect to the Docker daemon. Is 'docker -d' running on this host?" then you execute next command.
$ export $(boot2docker shellinit)C-2. Login to Docker Hub.
$ docker loginC-3. Pull container image of OpenIAV from Docker Hub.
$ docker pull komiyama/binderC-4. Check an information of container image.
$ docker imagesC-5. Start a container from an image as a daemon and assign HTTP port to the container.
$ docker run -t -i -d -p 10080:80 --name binder komiyama/binderC-6. Check a sturted container.
$ docker ps -aC-7. Access http://DOCKER_HOST:PORT/binder/login/ via a browser.
http://192.168.59.103:10080/binder/login/
Administrator: (ID:admin, Password:adminadmin)
User: (ID:user1, Password:useruser)
Supervisor: (ID:demo1, Password:demodemo)
C-9. Set up the CONTAINER ID into an option parameter of docker stop command at the termination of a container.$ docker stop CONTAINER_ID
C'-1. If you encounter the message of "Cannot connect to the Docker daemon. Is 'docker -d' running on this host?" then you execute next command.
$ export $(boot2docker shellinit)C'-2. Download the TAR file of container image of OpenIAV from our Web site.
https://regmed.hgc.jp/docker/ImageAnnotationViewer_latest.tar.gz
$ docker load -i /YOUR/FILE/PATH/AnnotationImageViewer_latest.tar.gzC'-4. Check an information of container image.
$ docker imagesC'-5. Set a human readable tag to the loaded IAV image.
$ docker tag IMAGE_ID komiyama/binder:latestC'-6. Start a container as a daemon and assign HTTP port to the container.
$ docker run -t -i -d -p 10080:80 --name binder komiyama/binderC'-7. Check a sturted container.
$ docker ps -aC'-8. Access http://DOCKER_HOST:PORT/binder/login/ via a browser.
http://192.168.59.103:10080/binder/login/
Administrator: (ID:admin, Password:adminadmin)
User: (ID:user1, Password:useruser)
Supervisor: (ID:demo1, Password:demodemo)
C'-10. Set up the CONTAINER ID into an option parameter of docker stop command at the termination of a container.$ docker stop CONTAINER_ID
OS: Windows 7, 8.1 (64bit), Mac OSX (64bit), Linux CentOS 6 etc. (64bit); 32bit OS is not supported!
CPU: Intel Core i 5/7 series multi-core processor, Xeon series.
Main Memory: 4GB (Minimum)
Storage: 2GB (Minimum)