Categories: DevOpsDockers

Docker – How to Install Docker Compose on Windows


This article represents tips and code samples which could be used to install Docker-compose on Windows. The instructions could also be found on this page. Please feel free to comment/suggest if I missed to mention one or more important points. Also, sorry for the typos.

Following are the key points:

  • Make sure you have Docker Engine version 1.7.1 or greater. Open a putty terminal accessing the “default” docker-machine or do “docker-machine ssh default”. You could put name of any other machine based on docker-machine in which you want to install docker-compose.
  • Login as a Superuser using command “sudo -i”
  • Install the docker-compose using following command:
    curl -L https://github.com/docker/compose/releases/download/1.6.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
    

    Do note that one would need to have Docker version 1.9.1 or above to install docker-compose of version 1.6.0.

  • Apply following permissions or else you would end up getting the error such as “-sh: docker-compose: Permission denied”
    chmod +x /usr/local/bin/docker-compose
    
  • Once done with above, exit from root shell and execute following command. It should print you the docker-compose version as 1.6.0.
    docker-compose --version
    


Ajitesh Kumar

I have been recently working in the area of Data analytics including Data Science and Machine Learning / Deep Learning. I am also passionate about different technologies including programming languages such as Java/JEE, Javascript, Python, R, Julia, etc, and technologies such as Blockchain, mobile computing, cloud-native technologies, application security, cloud computing platforms, big data, etc. I would love to connect with you on Linkedin. Check out my latest book titled as First Principles Thinking: Building winning products using first principles thinking.

Share
Published by
Ajitesh Kumar
Tags: docker

Recent Posts

ROC Curve & AUC Explained with Python Examples

Last updated: 28th Aug, 2024 Confusion among data scientists regarding ROC Curve and AUC often…

1 week ago

Accuracy, Precision, Recall & F1-Score – Python Examples

Last updated: 27th Aug, 2024 Classification models are used in classification problems to predict the…

2 weeks ago

Logistic Regression in Machine Learning: Python Example

Last updated: 26th August, 2024 In this blog post, we will discuss the concepts of…

2 weeks ago

Reducing Overfitting vs Models Complexity: Machine Learning

Last updated: 25th August, 2024 In machine learning, model complexity and overfitting are related in…

2 weeks ago

Model Parallelism vs Data Parallelism: Examples

Last updated: 24th August, 2024 Model parallelism and data parallelism are two strategies used to…

2 weeks ago

Overfitting & Underfitting in Machine Learning

Last updated: 24th August, 2024 The performance of the machine learning models on unseen datasets…

2 weeks ago