Docker Community Forums

Share and learn in the Docker community.

Test a docker on centos7 virtualized with virtualbox on win 8.1


(Mabullo) #1

Hi, I recently started using docker.
I installed docker and docker-compose on a centos7 virtual machine, virtualized with virtualbox on windows 8.1.
The build of the file ‘docker-compose.yml’ works correctly, and if I launch the docker ps command I get the following active containers:

> CONTAINER ID        IMAGE                          COMMAND                  CREATED             STATUS              PORTS                            NAMES
> b968d6dd0c8c        phpmyadmin/phpmyadmin:latest   "/run.sh supervisord…"   About an hour ago   Up About an hour    9000/tcp, 0.0.0.0:8082->80/tcp   mabullo_phpmyadmin_1
> 89c7563c86e5        wordpress:latest               "docker-entrypoint.s…"   About an hour ago   Up About an hour    0.0.0.0:8000->80/tcp             mabullo_wordpress_1
> c312fe451085        mysql:5.7                      "docker-entrypoint.s…"   About an hour ago   Up About an hour    3306/tcp, 33060/tcp              mabullo_db_1

How can I reach the wordpress docker from the windows machine’s browser?

Thanks

Marco


(Mabullo) #2

I solved the problem by setting an IP address to the virtual machine