Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Containers and domain #32

Open
juan-manuel-alberro opened this issue Feb 5, 2016 · 5 comments
Open

Containers and domain #32

juan-manuel-alberro opened this issue Feb 5, 2016 · 5 comments

Comments

@juan-manuel-alberro
Copy link

Can I run two containers at the same time and access it using a URL? By default, it uses wocker.dev but I want to create another container that runs into let says mysite.dev.
Is that possible?
Thanks.

@ixkaito
Copy link
Member

ixkaito commented Feb 9, 2016

Sorry for the late reply.

Can I run two containers at the same time and access it using a URL?

I have to say it's not available basically. However, if you are familiar with Docker, it's possible to do it, but it will be no longer Wocker.

@ailispaw
Copy link
Contributor

I created a patch to run multiple wocker containers at the same time.
https://github.com/ailispaw/wocker/tree/wocker-multi

If you run the wocker VM on _Mac OSX_ and installed _vagrant-triggers_ plugin, you can access http://wocker.wocker.dev instead of http://wocker.dev as below.
And you can create another wocker container as you want.

$ vagrant destroy -f # If you have already created the wocker VM.
$ vagrant up         # You may ask your password to setup DNS resolver and routing on Mac OSX.
$ open http://wocker.wocker.dev
$ vagrant ssh -c 'wocker-multi <name>'
$ open http://<name>.wocker.dev

It may take some time to refresh DNS cache on the local.

@ixkaito
Copy link
Member

ixkaito commented Feb 20, 2016

@ailispaw
This is amazing!
However, some Wocker commands will not work.
I will consider this feature on the next major version.

@ailispaw
Copy link
Contributor

@ixkaito Yeah, I'm concerned about Windows, too.
We need contributors for that.

@ixkaito
Copy link
Member

ixkaito commented Feb 20, 2016

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants