Skip to content

Instantly share code, notes, and snippets.

@bcaudan
Last active August 10, 2016 16:18
Show Gist options
  • Save bcaudan/29fb60d60058d5df0982c50da1148f11 to your computer and use it in GitHub Desktop.
Save bcaudan/29fb60d60058d5df0982c50da1148f11 to your computer and use it in GitHub Desktop.
cs-env-osx Docker Toolbox -> Docker for Mac
  • Arrêtez votre docker-machine :

      docker-machine stop cs-env
    
  • Démarrez un nouveau terminal et assurez vous qu'aucune variable DOCKER_* n'est présente (enlevez les de votre bashrc sinon)

      env | grep DOCKER
    
  • Ajoutez à votre bashrc :

      export DOCKER_HOST_IP=`ifconfig en0 | grep "inet " | cut -d" " -f2`
      export LOCAL_IP=$DOCKER_HOST_IP
    
  • Dans votre fichier /etc/hosts remplacez tous les 192.168.99.100 par des 127.0.0.1

  • Installez Docker for Mac : https://github.com/ContentSquare/cs-env-osx/tree/docker-for-mac#install-docker-for-mac

  • Récupérez la branche docker-for-mac sur cs-env

  • Dans le dossier dev-osx :

      docker-compose pull
      ./start-containers.sh
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment