wocker icon indicating copy to clipboard operation
wocker copied to clipboard

Containers and domain

Open juan-manuel-alberro opened this issue 9 years ago • 5 comments

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.

juan-manuel-alberro avatar Feb 05 '16 10:02 juan-manuel-alberro

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.

ixkaito avatar Feb 09 '16 03:02 ixkaito

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.

ailispaw avatar Feb 11 '16 09:02 ailispaw

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

ixkaito avatar Feb 20 '16 09:02 ixkaito

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

ailispaw avatar Feb 20 '16 12:02 ailispaw

:+1:

ixkaito avatar Feb 20 '16 23:02 ixkaito