This document explains how to install docker in your machine.
Note: Before starting, be sure you are in
SubVortexdirectory
To install Docker on macOS, you can follow these steps:
Go to the Docker website (https://www.docker.com/products/docker-desktop) and download Docker Desktop for Mac.
Once the download is complete, open the downloaded file (Docker.dmg) and drag the Docker icon to the Applications folder to install it.
Open Docker Desktop from the Applications folder or from Launchpad.
After launching Docker Desktop, it may prompt you for your system password to complete the installation process. Once the installation is complete, Docker Desktop should start automatically. You should see the Docker icon in the menu bar.
To verify that Docker is installed correctly, open a terminal window and run the following command:
docker --version
This command should display the version of Docker that is installed on your system.
To verify that Docker compose is installed correctly, open a terminal window and run the following command:
docker-compose --version
This command should display the version of Docker compose that is installed on your system.
To install docker on Linus, you have to run
./scripts/docker/docker_setup.sh
This script will install docker and docker-compose.
To check everything is installed, you can check the version of docker
docker -v
This command should display the version of Docker that is installed on your system.
You can check as well the version of docker compose
docker-compose -v
This command should display the version of Docker that is installed on your system.
To uninstall Docker Desktop on macOS, you can follow these steps:
First, ensure that Docker Desktop is not running. You can quit Docker Desktop by clicking on the Docker icon in the menu bar and selecting "Quit Docker Desktop".
Open a terminal window and run the following command:
/Applications/Docker.app/Contents/MacOS/Docker --uninstall
This command removes Docker Desktop and all associated components from your system.
Next, you can manually remove the Docker Desktop application from your Applications folder. You can do this by dragging the Docker application to the Trash.
Optionally, you may also want to remove Docker data, including containers, images, volumes, and settings. Be cautious with this step as it will permanently delete all Docker-related data. You can remove the Docker data directory by running:
rm -rf ~/Library/Containers/com.docker.docker
After uninstalling Docker Desktop and removing associated data, you may want to restart your Mac to ensure that all changes take effect.
To uninstall docker, you have to run
./scripts/docker/docker_teardown.sh
To check everything is uninstalled, you can check the following command failed
docker -v
You should get something similar to
bash: /usr/bin/docker: No such file or directory
You can check as well
docker-compose -v
You should get something similar to
bash: /usr/bin/docker-compose: No such file or directory