10/22/2023 0 Comments Yum install docker![]() ![]() Nginx is one of the most popular web servers, it's easily deployable via docker. Deploy a sample nginx server using docker-compose Want to test it out? Follow this simple tutorial and learn how to use Docker Compose. Once you're done, either use source command source ~/.bashrc or reopen the terminal (log out and log back in if it's a server).Ĭonfirm docker-compose is installed using the following command: :~$ docker-compose -versionĭocker-compose version 1.26.2, build unknownĬongratulations! You now have docker-compose installed on your CentOS 8 server. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |