Last active
          January 16, 2016 07:36 
        
      - 
      
 - 
        
Save bitjockey42/efceb07887225cbc2ba2 to your computer and use it in GitHub Desktop.  
    Load docker-machine environment variables automatically
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | if [[ $(pgrep docker-machine-driver-xhyve) ]]; then | |
| if [[ $(docker-machine status dev) == *"Running"* ]]; then | |
| eval $(docker-machine env dev) | |
| else | |
| echo "It looks like docker-machine did not start correctly" | |
| fi | |
| else | |
| echo "docker-machine dev is not running" | |
| echo "try running: docker-machine start dev" | |
| fi | |
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment