This repository was archived by the owner on Jun 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Installing Docker and Docker Compose
Joshua Zenn edited this page Jan 27, 2022
·
2 revisions
- Go to https://www.docker.com/products/docker-desktop and run the setup.
- You may be asked to restart as part of the install if you have never used Windows Virtualization Framework components before.
- Verify that Docker was installed correctly by opening Powershell or CMD and running
docker -vanddocker-compose --version. - Open the Docker Desktop program, and change any settings if needed.
If you see errors stating that the Docker engine could not start, try the following.
- Ensure that WSL 2 is installed (Windows 10 and later).
- If you have Windows 10/11 Pro or Enterprise, open Powershell as an administrator and run
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All. Restart after the command completes.
If you get an error about a file ending in .sh not existing, run this command instead of docker-compose up: docker-compose up -d --build web db email
- Go to https://www.docker.com/products/docker-desktop and run the setup.
- You may be prompted to allow a kernel extension called Hyperkit. It is an Apple framework, so it is safe to allow.
- Verify that Docker was installed correctly by opening the terminal and running
docker -vanddocker-compose --version. - Open the Docker Desktop program, and change any settings if needed.
Check the Security & Privacy section of the settings app to see if anything was blocked.
See the documentation if you are not running a Debian-based distribution.
sudo apt-get install -y ca-certificates curl gnupg lsb-release
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
sudo curl -L "https://github.com/docker/compose/releases/download/v1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-composeVerify that everything was installed correctly with docker -v and docker-compose --version.
Google is your friend, good luck.