From 3b50331c97580eaf68b97c12ac83cfa3d4749f24 Mon Sep 17 00:00:00 2001 From: Mathieu Parent Date: Thu, 12 Jan 2017 09:45:01 +0100 Subject: [PATCH] Always use sudo on Debian installation --- engine/installation/linux/debian.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/engine/installation/linux/debian.md b/engine/installation/linux/debian.md index 22b2557335..acba6693fe 100644 --- a/engine/installation/linux/debian.md +++ b/engine/installation/linux/debian.md @@ -61,13 +61,13 @@ from the new repository: 3. Purge any older repositories. - $ apt-get purge "lxc-docker*" - $ apt-get purge "docker.io*" + $ sudo apt-get purge "lxc-docker*" + $ sudo apt-get purge "docker.io*" 4. Update package information, ensure that APT works with the `https` method, and that CA certificates are installed. - $ apt-get update - $ apt-get install apt-transport-https ca-certificates gnupg2 + $ sudo apt-get update + $ sudo apt-get install apt-transport-https ca-certificates gnupg2 5. Add the new `GPG` key. @@ -106,7 +106,7 @@ from the new repository: 10. Update the `APT` package index. - $ apt-get update + $ sudo apt-get update 11. Verify that `APT` is pulling from the right repository. @@ -175,7 +175,7 @@ use the `-G` flag to specify an alternative group. To install the latest version of Docker with `apt-get`: - $ apt-get upgrade docker-engine + $ sudo apt-get upgrade docker-engine ## Uninstall @@ -191,7 +191,7 @@ The above commands will not remove images, containers, volumes, or user created configuration files on your host. If you wish to delete all images, containers, and volumes run the following command: - $ rm -rf /var/lib/docker + $ sudo rm -rf /var/lib/docker You must delete the user created configuration files manually.