mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #24654 from crosbymichael/enable-systemctl
Enable docker.socket and docker.service in fedora install docs
This commit is contained in:
commit
9df2a825ba
1 changed files with 13 additions and 11 deletions
|
@ -12,7 +12,7 @@ weight=-3
|
||||||
|
|
||||||
# Fedora
|
# Fedora
|
||||||
|
|
||||||
Docker is supported on Fedora version 22 and 23. This page instructs you to install
|
Docker is supported on Fedora version 22, 23, and 24. This page instructs you to install
|
||||||
using Docker-managed release packages and installation mechanisms. Using these
|
using Docker-managed release packages and installation mechanisms. Using these
|
||||||
packages ensures you get the latest release of Docker. If you wish to install
|
packages ensures you get the latest release of Docker. If you wish to install
|
||||||
using Fedora-managed packages, consult your Fedora release documentation for
|
using Fedora-managed packages, consult your Fedora release documentation for
|
||||||
|
@ -60,11 +60,15 @@ There are two ways to install Docker Engine. You can install with the `dnf` pac
|
||||||
|
|
||||||
$ sudo dnf install docker-engine
|
$ sudo dnf install docker-engine
|
||||||
|
|
||||||
5. Start the Docker daemon.
|
5. Enable the socket and service.
|
||||||
|
|
||||||
|
$ sudo systemctl enable docker.socket docker.service
|
||||||
|
|
||||||
|
6. Start the Docker daemon.
|
||||||
|
|
||||||
$ sudo systemctl start docker
|
$ sudo systemctl start docker
|
||||||
|
|
||||||
6. Verify `docker` is installed correctly by running a test image in a container.
|
7. Verify `docker` is installed correctly by running a test image in a container.
|
||||||
|
|
||||||
|
|
||||||
$ sudo docker run hello-world
|
$ sudo docker run hello-world
|
||||||
|
@ -109,11 +113,15 @@ There are two ways to install Docker Engine. You can install with the `dnf` pac
|
||||||
|
|
||||||
This script adds the `docker.repo` repository and installs Docker.
|
This script adds the `docker.repo` repository and installs Docker.
|
||||||
|
|
||||||
4. Start the Docker daemon.
|
4. Enable the socket and service.
|
||||||
|
|
||||||
|
$ sudo systemctl enable docker.socket docker.service
|
||||||
|
|
||||||
|
5. Start the Docker daemon.
|
||||||
|
|
||||||
$ sudo systemctl start docker
|
$ sudo systemctl start docker
|
||||||
|
|
||||||
5. 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.
|
||||||
|
|
||||||
$ sudo docker run hello-world
|
$ sudo docker run hello-world
|
||||||
|
|
||||||
|
@ -151,12 +159,6 @@ To create the `docker` group and add your user:
|
||||||
|
|
||||||
$ docker run hello-world
|
$ docker run hello-world
|
||||||
|
|
||||||
## Start the docker daemon at boot
|
|
||||||
|
|
||||||
To ensure Docker starts when you boot your system, do the following:
|
|
||||||
|
|
||||||
$ 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
|
||||||
learn how to [customize your Systemd Docker daemon options](../../admin/systemd.md).
|
learn how to [customize your Systemd Docker daemon options](../../admin/systemd.md).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue