-
Notifications
You must be signed in to change notification settings - Fork 168
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
Running docker on windows 10 using docker-machine #63
Comments
@miguelangeltorresfp Can you please share your compose file? |
Sure @dsifford, but I didn't modify anything. version: '2' I was just following this tutorial I just did |
@miguelangeltorresfp Which resources are failing to load? Can you rebuild with Thanks |
@miguelangeltorresfp I don't know how it works on Windows but you should probably forward the 8080 port from Docker (or the VM that runs it). That way you should be able to access the entire site via UPDATE: The VM IP can change, that's why it is not a good idea to use it. It would require you to change it throughout your wordpress DB for the site to work. |
These are the resources that are failing
Sorry @dsifford, I'm a newbie and I'm not sure where I have to add I run docker-compose --verbose up
|
@miguelangeltorresfp Three things...
version: '2'
services:
wordpress:
image: visiblevc/wordpress:latest
ports:
- 8080:80
- 443:443
environment:
DB_NAME: wordpress
DB_PASS: root
db:
image: mariadb:10
volumes:
- data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: root
volumes:
data: Make sure that you run the following commands prior do rebuilding.
Kill and remove all containers that may be running
and if the output of
Remove all build images so that you know for sure that you have the latest one..
|
Thank you @karellm and @dsifford for your time and patience. 1 ) I have windows home edition and It's not supported yet. 2 ) Yes, the ip of the default docker-machine is 192.168.99.100
3 ) I had already did all of these steps before. I've tested the official quickstart project for wordpress and it works without problems. |
@miguelangeltorresfp Is the I run on linux mainly (sometimes OSX) so unfortunately I can't attempt to recreate your issue since I have no access to a windows machine. |
@dsifford, yes, now I know that working on windows for web development is not the most advisable. I didn't know that until I start to test Varying-Vagrant-Vagrants-vvv. |
@miguelangeltorresfp Let me see if I can recreate this issue with docker-machine on a cloud provider. Busy with other things at the moment, but I should be able to try in the next couple of days. |
@dsifford Thank you very much for your help. And don't worry, take your time, I'll be checking this thread for a possible solution. |
I've been following this tutorial. It works with two containers
2 ) Built with this command The wordpress files have been copied into the working directory of the apache container. I visit the site, install wordpress and then, when I get into the wordpress admin dashboard, in general settings, it shows
I think this is what is causing problems. |
@miguelangeltorresfp Do you have access to the container now? Can you open a shell session in the wordpress container and show me the output of the following two commands.
And also, as a reminder, can you also give me the IP of your machine? From outside the containers
Got a hunch here about something.. Thanks. |
Sorry @dsifford if I'm a bit late with this, I'm from Spain.
|
No worries. I think we have a winner! Just to confirm, can you now run the following two commands in your wordpress service and see if it fixes your issue?
Let me know. Thanks |
Sorry @dsifford, it doesn't seem to work neither. I try setting the url with and without ports
But when I try to access the site on the browser it refuses the connection. And http://192.168.99.100:8080/ redirects to http://192.168.99.100/ |
Sorry, you'll also have to flush your rewrite rules I think.. So after setting, run |
No, it's redirecting in the same way. Maybe I have to replace old url with the new ones like in this article But I don't know exactly how I must write it down, |
That's what |
Yes, the server refuses the connection.
|
But maybe I don't have to add the port to the url, do I ?? |
See here: https://github.com/visiblevc/wordpress-starter#wordpress ( Destroy all your containers and rebuild trying that if you haven't done it already. |
I was under the assumption you already attempted that |
I tried
Then everything seems to have correctly installed,
@dsifford , I don't want to want to bother you anymore with this. It's better to wait for a more experienced windows user. Thank you very much for your patience. |
Hi, this is a great project and I think it's just what I was looking for.
I run docker-compose up but then when I visit
http://192.168.99.100:8080/
there are a lot of resources that fail to load from http://localhost:8080/.
Any help be appreciated.
Thanks in advance.
The text was updated successfully, but these errors were encountered: