Mac Os: Chapter 1 Getting Started
Mac Os: Chapter 1 Getting Started
Mac OS
Go to https://docs.docker.com/docker-for-mac/install/, shown in
Figure 1-2.
6
Chapter 1 Getting Started
The Docker menu in the top status bar indicates that Docker Desktop
is running and accessible from a terminal.
Linux
Go to https://docs.docker.com/engine/install/. Here you will find
links to instructions on how to install Docker on several popular Linux
7
Chapter 1 Getting Started
<code>
sudo apt-get remove docker docker-engine docker.io
containerd runc
</code>
<code>
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release
</code>
<code>
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo
gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
</code>
8
Chapter 1 Getting Started
<code>
echo \
"deb [arch=amd64 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
</code>
<code>
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
</code>
9
Chapter 1 Getting Started
Installing Docker-Compose
Mac and Windows users that have installed Docker Desktop can skip the
installation step because Compose is included with the installed package.
<code>
sudo curl -L "https://github.com/docker/compose/releases/
download/1.29.1/docker-compose-$(uname -s)-$(uname -m)" -o /
usr/local/bin/docker-compose
</code>
<code>
sudo chmod +x /usr/local/bin/docker-compose
</code>
10