I'm trying to create plugin for different docker container ... but if you want to test it, you can use terminal and use docker !
- docker run : allow to create a container from an image, if the image is not already download, docker run download it, then start it automatically.
- once the container created, you can start and stop it with docker start or docket start. You can also use dockerUI to start or stop.
Here an example to install different containers for Jeedom an Home Automation Service :
docker run -d --name jeedom-mysql -e MYSQL_ROOT_PASSWORD=set_a_password -v /media/RAID_volume_like_f65f6a6b183e31b/Jeedom-mysql:/var/lib/mysql mysql:5.6.21
Docker will download the image with a database MySQL needed by Jeedom, then create a container with a password set by you and a folder mapping between /media/RAID_volume_like_f65f6a6b183e31b/ (your NAS volume) and the data directory of MySQL var/lib/mysql.
docker run --name jeedom-data -v /media/RAID_volume_like_f65f6a6b183e31b/Jeedom-data:/usr/share/nginx/www/jeedom --link jeedom-mysql:mysql cquad/jeedom-data
Here, Dokcer download an image, then create a container to manage data of Jeedom (webapp)
docker run -d --name jeedom-web --volumes-from jeedom-data --link jeedom-mysql:mysql -p 80:80 -p 8070:8070 cquad/jeedom-web
Now a last container to have the servie truned on with dependancy to the 2 previous container with a mapping of port, it's possible to map USB device like file/folder mapping.
That's all, you can after that create an init file with command line like :
To start Jeedom :
To stop Jeedom :