You'll have to add it to the PATH environment variable so that you can run it from anywhere: echo 'PATH="$PATH:$HOME/.local/bin"' > ~/.bashrc Pip installs docker-compose in ~/.local/bin directory. Use pip to install docker-compose pip3 install -user docker-compose Install pip3 using the following command: sudo dnf install python3-pip Since Docker Compose is basically a Python application, it makes sense to use PIP for installing it. Personally, I prefer using PIP to install Docker Compose. Use PIP to install Docker Compose easily.Download the Docker Compose Linux installer files and manually set it up.There are two ways to install Docker Compose on Linux: Make sure to install Docker on your CentOS system before installing Docker Compose.ĭocker-compose isn't packaged on either CentOS's official repositories or docker's rpm repository. I'll also show you a quick example of using Docker Compose for deploying an NGINX server with specific configuration. In this tutorial, I'll show you how to install Docker Compose on CentOS server. lines, you can just use docker-compose up -dto deploy multiple services at once. It uses a simple YAML file for service description. Docker Compose is a simple Python program that helps in easy deployments of multiple docker containers on a server.
0 Comments
Leave a Reply. |