samedi 12 mars 2016

Getting ember to run under docker on Windows Quickstart

Working through this tutorial on setting up ember-cli in a Docker container: http://ift.tt/1QEPOrz

Here are my steps:

  1. Created docker-compose.yml in an empty folder on the host machine
  2. Launched Docker Quickstart to get a terminal
  3. Changed to the folder with the .yml
  4. Ran the two docker-compose commands below from the terminal (added -d because without that you get a message that interactive mode is not supported)
  5. Ran docker ps -a to verify that the container was running
  6. Ran docker inspect CONTAINER_ID to find the ip address of the running container
  7. Found the IP address at an odd location (172.17.0.2)
  8. Attempted to access port 4200 on that IP from the host Windows machine browser and also from the Docker CL via curl but without success.
  9. Ran docker ps -a and found that both containers that had been instantiated had exited.
  10. Now if I try to start the container again it just exits immediately

docker-compose run -d --rm ember init docker-compose run -d --rm ember server

What am I missing to get up and running? Do I need to open ports on the Default VM running in Virtualbox? How do I diagnose why the container keeps exiting?

Aucun commentaire:

Enregistrer un commentaire