![]() If you want to transition from that legacy docker-compose 1.xx to Compose V2, consider installing compose-switch to translate docker-compose. ![]() If you already have a pre-existing version of docker-compose (version 1), the installation of version 2 doesn’t remove that legacy version: $ docker-compose -versionĭocker-compose version 1.28.2, build 67630359 It has been completely rewritten from scratch in Golang (V1 was in Python). Transitioning away from docker-compose (version 1)ĭocker Compose V2 is a major version bump release of Docker Compose. Verify that the installation was successful: $ docker compose version Make the file executable with chmod +x: $ sudo chmod +x /home/your_username/.docker/cli-plugins/docker-compose Create that directory if it doesn’t yet exist before copying it over.(Alternative) You can also download the right binary for your distribution manually, rename it to docker-compose post-download and then copy it to /usr/local/lib/docker/cli-plugins using the cp or mv (for ‘move’) command. Rename it to docker-compose using the mv command: $ mv docker-compose-linux-x86_64 docker-compose The following command uses cUrl to download that and store it to /usr/local/lib/docker/cli-plugins, making it available system-wide: $ sudo curl -L sudo curl -L "$(uname -s)-$(uname -m)" -o /usr/local/lib/docker/cli-plugins Replace the following command with the latest version from the aforementioned release page and the appropriate kernel name. Firing up your terminal and using the uname command will help: $ echo "$(uname -s) $(uname -m)" Hop over to the release page and find the relevant binary for your OS. If you are restricted from updating to the latest versions of your Linux distro to meet the requirement of Docker Desktop, and would like to install from the provided binaries, read on! Verify the installation: $ docker version $ sudo apt install docker-ce docker-ce-cli docker-compose-plugin $(lsb_release -cs) stable" | sudo tee /etc/apt//docker.list > /dev/nullįinally, install Docker Engine and Docker Compose: $ sudo apt update # Use the following command to set up the repository: ![]() $ curl -fsSL | sudo gpg -dearmor -o /etc/apt/keyrings/docker.gpg Installing Docker and Docker Compose on Linuxĭocker Compose requires the use of Docker so a quick installation guide will be handy reference here.įirst, set up Docker’s repository and install them with cURL is the recommended approach and this is done with the following lines of code: $ sudo apt updateĪdd Docker’s official GPG key and set up the repository $ sudo mkdir -p /etc/apt/keyrings This is the motivation of writing this guide on installing Docker and Docker Compose on Linux without the Docker Desktop bundle. On more than one of my machines, I’m using an older LTS - which means I’m out of luck with Docker Desktop. Docker Desktop is supported on x86_64 (or amd64) archi
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |