mirror of https://github.com/docker/docs.git
update uninstall instructions of centos and fix a bad format (#767)
Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>
This commit is contained in:
parent
da8604c9ef
commit
43c4656ae6
|
@ -181,7 +181,7 @@ To create the `docker` group and add your user:
|
|||
3. Add your user to `docker` group.
|
||||
|
||||
```bash
|
||||
$ sudo usermod -aG docker your_username`
|
||||
$ sudo usermod -aG docker your_username
|
||||
```
|
||||
|
||||
4. Log out and log back in.
|
||||
|
@ -211,13 +211,15 @@ You can uninstall the Docker software with `yum`.
|
|||
```bash
|
||||
$ yum list installed | grep docker
|
||||
|
||||
docker-engine.x86_64 1.7.1-0.1.el7@/docker-engine-1.7.1-0.1.el7.x86_64
|
||||
docker-engine.x86_64 1.12.3-1.el7.centos @dockerrepo
|
||||
docker-engine-selinux.noarch 1.12.3-1.el7.centos @dockerrepo
|
||||
```
|
||||
|
||||
2. Remove the package.
|
||||
|
||||
```bash
|
||||
$ sudo yum -y remove docker-engine.x86_64
|
||||
$ sudo yum -y remove docker-engine-selinux.noarch
|
||||
```
|
||||
|
||||
This command does not remove images, containers, volumes, or user-created
|
||||
|
@ -229,4 +231,5 @@ You can uninstall the Docker software with `yum`.
|
|||
$ rm -rf /var/lib/docker
|
||||
```
|
||||
|
||||
4. Locate and delete any user-created configuration files.
|
||||
4. Locate and delete any user-created configuration files.
|
||||
|
||||
|
|
Loading…
Reference in New Issue