From 84eacd27cf6e9807e97e493ff2159989a06cf348 Mon Sep 17 00:00:00 2001 From: aslanvyos <126803786+aslanvyos@users.noreply.github.com> Date: Fri, 22 Sep 2023 16:47:05 +0400 Subject: 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/ --- docs/contributing/build-vyos.rst | 28 +++++++++++++++------------- 1 file 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`_ -- cgit v1.2.3