Update fedora doc
`service` is deprecated from Fedora v21. It's important to enable and start the `docker` daemon using `systemctl`. Signed-off-by: Boaz Shuster <ripcurld.github@gmail.com>
This commit is contained in:
parent
bece5b82a8
commit
6a64865991
|
@ -59,7 +59,7 @@ There are two ways to install Docker Engine. You can install with the `yum` pac
|
||||||
|
|
||||||
For Fedora 22 run:
|
For Fedora 22 run:
|
||||||
|
|
||||||
$ cat >/etc/yum.repos.d/docker.repo <<-EOF
|
$ cat >/etc/yum.repos.d/docker.repo <<-EOF
|
||||||
[dockerrepo]
|
[dockerrepo]
|
||||||
name=Docker Repository
|
name=Docker Repository
|
||||||
baseurl=https://yum.dockerproject.org/repo/main/fedora/22
|
baseurl=https://yum.dockerproject.org/repo/main/fedora/22
|
||||||
|
@ -74,7 +74,7 @@ There are two ways to install Docker Engine. You can install with the `yum` pac
|
||||||
|
|
||||||
5. Start the Docker daemon.
|
5. Start the Docker daemon.
|
||||||
|
|
||||||
$ sudo service docker start
|
$ sudo systemctl start docker
|
||||||
|
|
||||||
6. Verify `docker` is installed correctly by running a test image in a container.
|
6. Verify `docker` is installed correctly by running a test image in a container.
|
||||||
|
|
||||||
|
@ -123,13 +123,13 @@ There are two ways to install Docker Engine. You can install with the `yum` pac
|
||||||
|
|
||||||
4. Start the Docker daemon.
|
4. Start the Docker daemon.
|
||||||
|
|
||||||
$ sudo service docker start
|
$ sudo systemctl start docker
|
||||||
|
|
||||||
5. Verify `docker` is installed correctly by running a test image in a container.
|
5. Verify `docker` is installed correctly by running a test image in a container.
|
||||||
|
|
||||||
$ sudo docker run hello-world
|
$ sudo docker run hello-world
|
||||||
|
|
||||||
## Create a docker group
|
## Create a docker group
|
||||||
|
|
||||||
The `docker` daemon binds to a Unix socket instead of a TCP port. By default
|
The `docker` daemon binds to a Unix socket instead of a TCP port. By default
|
||||||
that Unix socket is owned by the user `root` and other users can access it with
|
that Unix socket is owned by the user `root` and other users can access it with
|
||||||
|
@ -163,7 +163,7 @@ To create the `docker` group and add your user:
|
||||||
|
|
||||||
To ensure Docker starts when you boot your system, do the following:
|
To ensure Docker starts when you boot your system, do the following:
|
||||||
|
|
||||||
$ sudo chkconfig docker on
|
$ sudo systemctl enable docker
|
||||||
|
|
||||||
If you need to add an HTTP Proxy, set a different directory or partition for the
|
If you need to add an HTTP Proxy, set a different directory or partition for the
|
||||||
Docker runtime files, or make other customizations, read our Systemd article to
|
Docker runtime files, or make other customizations, read our Systemd article to
|
||||||
|
@ -190,7 +190,7 @@ This configuration allows IP forwarding from the container as expected.
|
||||||
|
|
||||||
## Uninstall
|
## Uninstall
|
||||||
|
|
||||||
You can uninstall the Docker software with `yum`.
|
You can uninstall the Docker software with `yum`.
|
||||||
|
|
||||||
1. List the package you have installed.
|
1. List the package you have installed.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue