{"id":27390283,"url":"https://github.com/ailispaw/rexray-barge","last_synced_at":"2026-04-27T00:31:51.068Z","repository":{"id":89119806,"uuid":"60790927","full_name":"ailispaw/rexray-barge","owner":"ailispaw","description":"REX-Ray on Barge with Vagrant","archived":false,"fork":false,"pushed_at":"2019-01-15T18:55:22.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-30T16:50:47.732Z","etag":null,"topics":["barge","docker","rex-ray","vagrant"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ailispaw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-06-09T16:48:35.000Z","updated_at":"2019-01-15T18:55:23.000Z","dependencies_parsed_at":"2023-06-14T01:00:32.854Z","dependency_job_id":null,"html_url":"https://github.com/ailispaw/rexray-barge","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ailispaw/rexray-barge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ailispaw%2Frexray-barge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ailispaw%2Frexray-barge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ailispaw%2Frexray-barge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ailispaw%2Frexray-barge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ailispaw","download_url":"https://codeload.github.com/ailispaw/rexray-barge/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ailispaw%2Frexray-barge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32318417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"ssl_error","status_checked_at":"2026-04-26T23:26:25.802Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["barge","docker","rex-ray","vagrant"],"created_at":"2025-04-13T19:39:34.663Z","updated_at":"2026-04-27T00:31:51.063Z","avatar_url":"https://github.com/ailispaw.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# REX-Ray on Barge with Vagrant\n\n[REX-Ray](https://github.com/emccode/rexray) allows us to create and attach a VMDK (Virtual Machine Disk) dynamically with [VirtualBox](https://www.virtualbox.org/) as a persistent volume for a container.\n\nThis shows how to use REX-Ray on [Barge](https://atlas.hashicorp.com/ailispaw/boxes/barge) with [Vagrant](https://www.vagrantup.com/) instantly.\n\nIt's inspired by\n- [Discovering Docker Volume Plugins and Applications with VirtualBox | EMC {code} – Blog](https://blog.emccode.com/2016/01/06/discovering-docker-volume-plugins-and-applications-with-virtualbox/)\n- [Volume Plugins with Docker Toolbox and Boot2Docker | EMC {code} – Blog](https://blog.emccode.com/2016/01/19/volume-plugins-with-docker-toolbox-and-boot2docker/)\n\nPlease read them for further details.\n\n## Requirements\n\n- [VirtualBox](https://www.virtualbox.org/)\n- [Vagrant](https://www.vagrantup.com/)\n- [vagrant-triggers](https://github.com/emyl/vagrant-triggers)\n  It's used to start/stop vboxwebsrv automatically.  \n  I have tested it on Mac OSX, so you may need to modify Vagrantfile for the other platforms.\n\n## Boot up\n\n```bash\n$ vagrant up\n```\n\nThat's it.\n\n## A sample use case\n\n### Create a volume with REX-Ray\n\n```bash\n$ docker volume create --driver=rexray --name=mysql --opt=size=10\nmysql\n$ docker volume ls\nDRIVER              VOLUME NAME\nrexray              barge-packer-disk1.vmdk\nrexray              mysql\n$ ls -l \"$HOME/VirtualBox Volumes\"\ntotal 2688\n-rw-------  1 ailispaw  staff   1.3M Jun  9 09:55 mysql\n```\n\n`$HOME/VirtualBox Volumes` is defined in [assets/config.yml](assets/config.yml). You can change the location anywhere you want.\n\n### Run a MariaDB container with the volume\n\n```bash\n$ docker run -d --volume-driver=rexray -e MYSQL_ROOT_PASSWORD=test -v mysql:/var/lib/mysql -p 3306:3306 --name mariadb mariadb\n$ docker exec mariadb ls -l /var/lib/mysql\ntotal 110644\n-rw-rw---- 1 mysql mysql    16384 Jun  9 15:02 aria_log.00000001\n-rw-rw---- 1 mysql mysql       52 Jun  9 15:02 aria_log_control\n-rw-rw---- 1 mysql mysql 50331648 Jun  9 16:04 ib_logfile0\n-rw-rw---- 1 mysql mysql 50331648 Jun  9 15:00 ib_logfile1\n-rw-rw---- 1 mysql mysql 12582912 Jun  9 16:04 ibdata1\n-rw-rw---- 1 mysql mysql        0 Jun  9 15:00 multi-master.info\ndrwx------ 2 mysql mysql     4096 Jun  9 15:00 mysql\ndrwx------ 2 mysql mysql     4096 Jun  9 15:00 performance_schema\n-rw-rw---- 1 mysql mysql    24576 Jun  9 16:04 tc.log\n```\n\n### Check the contents of the volume\n\n```bash\n$ docker run --rm --volume-driver=rexray -v mysql:/mysql busybox ls -l /mysql\ntotal 110644\n-rw-rw----    1 999      999          16384 Jun  9 15:02 aria_log.00000001\n-rw-rw----    1 999      999             52 Jun  9 15:02 aria_log_control\n-rw-rw----    1 999      999       50331648 Jun  9 16:04 ib_logfile0\n-rw-rw----    1 999      999       50331648 Jun  9 15:00 ib_logfile1\n-rw-rw----    1 999      999       12582912 Jun  9 16:04 ibdata1\n-rw-rw----    1 999      999              0 Jun  9 15:00 multi-master.info\ndrwx------    2 999      999           4096 Jun  9 15:00 mysql\ndrwx------    2 999      999           4096 Jun  9 15:00 performance_schema\n-rw-rw----    1 999      999          24576 Jun  9 16:04 tc.log\n```\n\n## Notes\n\n- To dettach the VMDK(volume) from the VM, stop all containers with the volume. It will just dettach the VMDK, not remove from your local disk. See also [Ignore Used Count](http://rexray.readthedocs.io/en/stable/user-guide/config/#ignore-used-count) option.\n\n- `docker volume rm \u003cvolume\u003e` will remove the volume from the list of Docker volumes and the VMDK from your local disk as well. You can set [Disable Remove](http://rexray.readthedocs.io/en/stable/user-guide/config/#disable-remove) option to disable it.\n\n- The VMDK(volume) will be removed on `vagrant destoroy` unless you stop containers with the volume in advance of it, because `vagrant destoroy` will remove all attached virtual disks in the VM.\n\n- The VMDK(volume) can be re-used only while VBoxSVC daemon is up. You can see the VMDK in the VirtualBox Media Manager and the volume in the list of Docker volumes. Otherwise VirtualBox will release the VMDK ~~and it won't be re-attached, and you can't use the volume again. H'm~~.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Failispaw%2Frexray-barge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Failispaw%2Frexray-barge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Failispaw%2Frexray-barge/lists"}