Skip to content

Commit

Permalink
Merge pull request #1099 from sathieu/debian-sudo
Browse files Browse the repository at this point in the history
Always use sudo on Debian installation
  • Loading branch information
Misty Stanley-Jones authored Jan 13, 2017
2 parents 0d827b0 + 3b50331 commit 6dc089e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions engine/installation/linux/debian.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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.

Expand Down Expand Up @@ -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

Expand All @@ -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.

Expand Down

0 comments on commit 6dc089e

Please sign in to comment.