summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Göhler <github@ghlr.de>2023-09-25 20:37:14 +0200
committerGitHub <noreply@github.com>2023-09-25 20:37:14 +0200
commit772777582a99f2493c242d7ba726437d93385eef (patch)
treeb5bdf11d9e4cbd997ff55eac5948e11c1ff2386a
parentf48d0ab958451fce1a4d0246deb10d9a2dbeb588 (diff)
parent84eacd27cf6e9807e97e493ff2159989a06cf348 (diff)
downloadvyos-documentation-772777582a99f2493c242d7ba726437d93385eef.tar.gz
vyos-documentation-772777582a99f2493c242d7ba726437d93385eef.zip
Merge pull request #1096 from aslanvyos/patch-3
Update build-vyos.rst
-rw-r--r--docs/contributing/build-vyos.rst28
1 files changed, 15 insertions, 13 deletions
diff --git a/docs/contributing/build-vyos.rst b/docs/contributing/build-vyos.rst
index 2f08c68a..2ab9b13c 100644
--- a/docs/contributing/build-vyos.rst
+++ b/docs/contributing/build-vyos.rst
@@ -50,19 +50,21 @@ Installing Docker_ and prerequisites:
.. code-block:: bash
- sudo apt-get update
- sudo apt-get -y install \
- 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
-
+ # Add Docker's official GPG key:
+ sudo apt-get update
+ sudo apt-get install ca-certificates curl gnupg
+ sudo install -m 0755 -d /etc/apt/keyrings
+ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
+ sudo chmod a+r /etc/apt/keyrings/docker.gpg
+
+ # Add the repository to Apt sources:
+ echo \
+ "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
+ "$(. /etc/os-release && echo "$VERSION_CODENAME")" 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
+
`On Fedora`_