mirror of
https://github.com/clue/docker-phpvirtualbox.git
synced 2026-04-25 03:55:47 +03:00
[GH-ISSUE #2] Support advanced options #2
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/docker-phpvirtualbox#2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @clue on GitHub (Oct 16, 2014).
Original GitHub issue: https://github.com/clue/docker-phpvirtualbox/issues/2
For example:
@jwalton commented on GitHub (Jul 23, 2015):
I ran into this problem trying to connect from phpvirtualbox to vboxweb-service running on the docker host (since my vbox user and password were not the defaults.) Here's my (slightly hacky) fix, and my complete setup in case anyone else is interested in doing this:
Setup:
Start with Ubuntu v14.04.2
Create/edit /etc/default/docker:
This will set up the docker bridge to always be on 172.17.42.1, which means from inside a docker container we can connect to 172.17.42.1 to get to the docker host.
Install virtualbox via apt
Create a 'vbox' user and set a password. Create a home directory for vbox.
Create /etc/default/virtualbox
sudo service vboxweb-service startto get vboxweb-service up and running.Create /opt/phpvirtualbox/config-servers.php
Run clue/phpvirtualbox with:
This mounts /opt/phpvirtualbox/config-servers.php into /var/www/config-servers.php, and mounts it read-only, which will make it effectively override the one generated by the docker image.