Comment installer docker-compose sur Windows

Mots clés : windowsdockerboot2dockerdocker-composewindows

meilleur 4 Réponses Comment installer docker-compose sur Windows

vote vote

96

choco install docker-for-windows  # or choco upgrade docker-for-windows  
docker@boot2docker:~$  tce-load -wi python && curl https://bootstrap.pypa.io/get-pip.py | \   sudo python - && sudo pip install -U docker-compose 
docker@boot2docker:~$  echo 'su docker -c "tce-load -wi python" && \   curl https://bootstrap.pypa.io/get-pip.py | \   python - && pip install -U docker-compose' | \    sudo tee /var/lib/boot2docker/bootlocal.sh > /dev/null && \   sudo chmod +x /var/lib/boot2docker/bootlocal.sh 
  cd /c/Users/<username>/myproject/compose   # that will put the repo in a detached HEAD, but it does not matter here   git checkout 1.2.0   docker build -t docker-compose . 
  dc='docker run --rm -i -t -v /var/run/docker.sock:/var/run/docker.sock -v `pwd`:`pwd` -w `pwd` docker-compose' 
vote vote

89

pact install python-setuptools  pact install libxml2-devel libxslt-devel libyaml-devel curl -skS https://bootstrap.pypa.io/get-pip.py | python pip install virtualenv curl -skS https://raw.githubusercontent.com/mitsuhiko/pipsi/master/get-pipsi.py | python 
pip install -U docker-compose 
vote vote

80

pip install -U docker-compose 
vote vote

69

@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" 
choco install docker choco install docker-compose 

Questions similaires