mirror of https://github.com/docker/docs.git
Merge pull request #6599 from SvenDowideit/6478-update-fedora
Update fedora.md
This commit is contained in:
commit
28c22cb7f9
|
@ -48,6 +48,44 @@ Now let's verify that Docker is working.
|
||||||
|
|
||||||
$ sudo docker run -i -t fedora /bin/bash
|
$ sudo docker run -i -t fedora /bin/bash
|
||||||
|
|
||||||
|
## Granting rights to users to use Docker
|
||||||
|
|
||||||
|
Fedora 19 and 20 shipped with Docker 0.11. The package has already been updated
|
||||||
|
to 1.0 in Fedora 20. If you are still using the 0.11 version you will need to
|
||||||
|
grant rights to users of Docker.
|
||||||
|
|
||||||
|
The `docker` command line tool contacts the `docker` daemon process via a
|
||||||
|
socket file `/var/run/docker.sock` owned by group `docker`. One must be
|
||||||
|
member of that group in order to contact the `docker -d` process.
|
||||||
|
|
||||||
|
$ usermod -a -G docker login_name
|
||||||
|
|
||||||
|
Adding users to the `docker` group is *not* necessary for Docker versions 1.0
|
||||||
|
and above.
|
||||||
|
|
||||||
|
## HTTP Proxy
|
||||||
|
|
||||||
|
If you are behind a HTTP proxy server, for example in corporate settings,
|
||||||
|
you will need to add this configuration in the Docker *systemd service file*.
|
||||||
|
|
||||||
|
Edit file `/lib/systemd/system/docker.service`. Add the following to
|
||||||
|
section `[Service]` :
|
||||||
|
|
||||||
|
Environment="HTTP_PROXY=http://proxy.example.com:80/"
|
||||||
|
|
||||||
|
If you have internal Docker registries that you need to contact without
|
||||||
|
proxying you can specify them via the `NO_PROXY` environment variable:
|
||||||
|
|
||||||
|
Environment="HTTP_PROXY=http://proxy.example.com:80/" "NO_PROXY=localhost,127.0.0.0/8,docker-registry.somecorporation.com"
|
||||||
|
|
||||||
|
Flush changes:
|
||||||
|
|
||||||
|
$ systemctl daemon-reload
|
||||||
|
|
||||||
|
Restart Docker:
|
||||||
|
|
||||||
|
$ systemctl start docker
|
||||||
|
|
||||||
## What next?
|
## What next?
|
||||||
|
|
||||||
Continue with the [User Guide](/userguide/).
|
Continue with the [User Guide](/userguide/).
|
||||||
|
|
Loading…
Reference in New Issue