summaryrefslogtreecommitdiff
path: root/docs/contributing/build-vyos.rst
diff options
context:
space:
mode:
authoraslanvyos <126803786+aslanvyos@users.noreply.github.com>2023-09-22 16:47:05 +0400
committerGitHub <noreply@github.com>2023-09-22 16:47:05 +0400
commit84eacd27cf6e9807e97e493ff2159989a06cf348 (patch)
tree8d294641eac0ab8b7ad53e2e95ce86880c6b34d7 /docs/contributing/build-vyos.rst
parentd51461b1efe1b07b32b1bdd11c7d1f7735b9296d (diff)
downloadvyos-documentation-84eacd27cf6e9807e97e493ff2159989a06cf348.tar.gz
vyos-documentation-84eacd27cf6e9807e97e493ff2159989a06cf348.zip
Update build-vyos.rst
Updated Docker install procedure for Ubuntu The old version is not working properly Took all from Docker's official documentation https://docs.docker.com/engine/install/ubuntu/
Diffstat (limited to 'docs/contributing/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`_