Commit Graph

283 Commits

Author SHA1 Message Date
Usha Mandya
e73cdcf0f1 More updates related to subscription changes, address review comments
Signed-off-by: Usha Mandya <usha.mandya@docker.com>
2021-08-31 14:35:21 +00:00
Sebastiaan van Stijn
6332424085 Merge pull request #12920 from cc-wr/bugfix/fix-seccomp-typo
Fix apparent typo regarding seccomp filtering for the syscall clone
2021-08-27 17:33:26 +02:00
Sebastiaan van Stijn
b97db3206d Merge pull request #13417 from gqqnbig/patch-1
Unset environment variables when uninstall rootless docker
2021-08-27 15:32:53 +02:00
Akihiro Suda
0908c993fe rootless: suggest creating docker.service.d/override.conf, without modifying docker.service itself
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2021-08-27 18:07:32 +09:00
Akihiro Suda
de0d13322a rootless: remove outdated SELinux workaround for /run/xtables.lock
The SELinux workaround for `/run/xtables.lock` is no longer needed
since Docker 20.10.8 (moby/moby PR 42462)

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2021-08-27 17:29:20 +09:00
Akihiro Suda
0416aeb03f rootless: recommend installing dbus-user-session
rootless+cgroup2+systemd fails with a cryptic error when dbus-user-session dpkg is not installed.

```
docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:385: applying cgroup configuration for process caused: error while starting unit "docker
-931c15729b5a968ce803784d04c7421f791d87e5ca1891f34387bb9f694c488e.scope" with properties [{Name:Description Value:"libcontainer container 931c15729b5a968ce803784d04c7421f791d87e5ca1891f34387bb9f694c488e"} {Name:Slice Value:"use
r.slice"} {Name:PIDs Value:@au [4529]} {Name:Delegate Value:true} {Name:MemoryAccounting Value:true} {Name:CPUAccounting Value:true} {Name:IOAccounting Value:true} {Name:TasksAccounting Value:true} {Name:DefaultDependencies Val
ue:false}]: read unix @->/run/systemd/private: read: connection reset by peer: unknown.
```

ref: moby/moby issue 42793

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2021-08-27 17:26:18 +09:00
Akihiro Suda
8e48f0de0e rootless: update for Debian 11
- sysctl `kernel.unprivileged_userns_clone=1` is no longer needed

- Recommend fuse-overlayfs.
  Debian kernel has modprobe option `permit_mounts_in_userns=1` but
  still unstable (moby/moby issue 42302)

- Now apt repo has relatively recent version of slirp4netns (1.0.1)

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2021-08-27 17:26:18 +09:00
QQ喵
d3a118cc9d Unset environment variables PATH and DOCKER_HOST 2021-08-27 11:14:57 +08:00
Sebastiaan van Stijn
599660d47f s390x install steps updates
- fix sort order in output
- some minor other changes

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-08-26 11:11:00 +02:00
anujajakhade
b781519e18 Updated docs for s390x for latest version
Signed-off-by: Anuja Jakhade <anujajakhade@gmail.com>
2021-08-20 04:36:10 +00:00
Sebastiaan van Stijn
1583678203 Add missing code-hints, and minor markdown edits
- Add missing code-hints (console, yaml)
- Consistently add an empty line after code-blocks
- Combine some examples where the output and the command were
  put in separate blocks. With the "console" code-hint, this
  is no longer nescessary.
- fix indentation in cloud/ecs-integration.md, which caused the
  numbered-list to be interrupted.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-08-16 12:59:23 +02:00
Sebastiaan van Stijn
9991771180 engine/security: use "console" for shell examples
This allows for easier copying of the commands, without selecting the
prompt.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-08-06 17:20:01 +02:00
Sebastiaan van Stijn
2aa67d2670 Fix redirects, add notes about available arches, and minor edits
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-08-05 21:30:49 +02:00
Nirman Narang
055e6fd68a DOCS: Added support for arch s390x for Ubuntu, RHEL and SLES
Added .md files for SLES and RHEL engine installation. Added indexing to _data/toc.yaml and engine/install/index.md. Modified engine/install/index.md, includes/install-script.md, engine/security/rootless.md, storage/storagedriver/device-mapper-driver.md, and storage/storagedriver/select-storage-driver.md to add info for added RHEL and SLES support. Modified engine/install/ubuntu.md to add s390x repos and other info. Added tab target for RHEL and SLES to engine/security/rootless.md along with other info.

Signed-off-by: Nirman Narang <narang@us.ibm.com>
2021-08-05 19:48:09 +02:00
Akihiro Suda
16284c47cb Follow-up to #13275 ("Add note about NFS mounts for rootless data-root")
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2021-08-04 18:30:07 +09:00
Eli Uriegas
3ef4de1180 Add not about NFS mounts for rootless data-root
NFS mounts are not currently supported for rootless data-root so there should probably be a note about it so no one gets confused when it doesn't work.

Errors for running rootless containers when your data-root is an NFS mount look like:

```
docker: failed to register layer: ApplyLayer exit status 1 stdout:  stderr: open /root/.bash_logout: permission denied.
```
2021-08-03 11:35:19 -07:00
Jem Bishop
c53a05b8c1 Workaround for outdated slirp4netns on debian (#13029)
* Workaround for outdated slirp4netns on debian

I had issue on debian 11 where the package on the 
main apt repositories was too old. This provides workaround, by 
adding the testing repos to sources list then upgrading slirp4netns

* pr review

- add console tag
- add newline before console code block
- remove the installation instructions to `slirp4netns` and link to the releases page, which will have it anyway.

* pr review

- add in suggested comment about vpnkit
2021-07-01 17:11:09 +01:00
Usha Mandya
71980f608a Update engine/security/trust/index.md
Co-authored-by: Sebastiaan van Stijn <thaJeztah@users.noreply.github.com>
2021-06-08 17:03:23 +01:00
Usha Mandya
3830cdcc02 Update URLs to point to the upstream CNCF Notary repository
Signed-off-by: Usha Mandya <usha.mandya@docker.com>
2021-06-08 13:42:46 +01:00
Usha Mandya
516d2fc839 Remove Notary docs
Signed-off-by: Usha Mandya <usha.mandya@docker.com>
2021-06-03 01:08:40 +01:00
cc-wr
8ed0aa5316 Fix apparent typo. I do not believe CLONE_USERNS is a flag that actually exists. Based on the context, I believe CLONE_NEWUSER was the intended flag. 2021-05-31 05:17:59 -05:00
Sebastiaan van Stijn
030ebcd114 engine/security/protect-access: markdown touch-ups
- use "console" code hints for better copy/paste
- change links to point to markdown files

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-05-11 16:10:23 +02:00
unknown
477b71cb58 fixed broken link 2021-05-10 11:33:01 -05:00
Sebastiaan van Stijn
e146c7f2cd Merge pull request #12588 from aro5000/update_rootless_docker
Adding docker.socket to also be in disable command for rootless docker
2021-05-05 21:16:26 +02:00
Sebastiaan van Stijn
e22984f7d4 use Dockerfile "syntax" directive in examples
BuildKit allows using alternative Dockerfile syntaxes to introduce new features
without having to update Docker itself. The general recommendation is to always
specify a "syntax" directive in a Dockerfile, so that (if needed) older versions
of Docker can download the correct syntax to build the Dockerfile.

This updates our examples to include a syntax directive, to make users more familiar
with these directives, and to illustrate best-pracitces in our documentation.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-04-20 10:19:12 +02:00
Sebastiaan van Stijn
a6e2944ddf Merge pull request #12648 from avivmu/patch-2
Rootless is not experimental anymore
2021-04-15 14:26:43 +02:00
Akihiro Suda
5f47c24504 rootless: update for v20.10.6
- btrfs is now supported (moby/moby PR 42253)
- CLI context "rootless" is now created by default (moby/moby PR 42109)

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2021-04-14 14:47:57 +09:00
avivmu
f35134f44a Rootless is not experimental anymore
As mentioned in [https://docs.docker.com/engine/security/rootless/](Rootless mode) the feature has graduated from experimental in v.20.10
2021-04-10 11:37:33 +03:00
Aaron Stults
1c828097a6 Adding docker.socket to also be disabled otherwise any docker command run will re-enable docker.service 2021-03-27 16:02:43 -06:00
Sebastiaan van Stijn
734e868ade Merge pull request #12234 from AkihiroSuda/rootless
update rootless docs
2021-02-25 11:26:36 +01:00
Sebastiaan van Stijn
238c346705 Fix redirect for "/engine/security/https/"
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-02-12 19:43:02 +01:00
Akihiro Suda
690e0010aa update rootless docs
= _includes/install-script.md, engine/install/linux-postinstall.md =
- Remove "Rootless mode is currently available as an experimental feature."
  Close issue 12050

= engine/security/rootless.md =
== "Prerequiresites" section ==
- Remove information about old distros (Debian 9, CentOS 7.5-7.6)

== "Distribution-specific hint" section ==
- Tabified (`<div class="tab-content" />`)

== "Known limitations" section ==
- Kernel 5.11 supports rootless overlayfs, without the Ubuntu/Debian patch.

== "Install" section ==
- Promote RPM/DEB installation over TGZ installation.
  See docker/roadmap issue 188

== "Uninstall" section ==
- Add "Uninstall" section.
  Close issue 12053

== "Usage" section ==
- Added more information about systemd
- Move `nsenter` tips to "Tips for debugging" subsection under "Troubleshooting" section

== "Best practice" section ==
- Remove guide for `lxc-user-nic` network driver due to immaturity.
  Will be brought back in future.
  See rootless-containers/rootlesskit issue 138 .

== "Troubleshooting" section ==
- Add a guide for "can't open lock file /run/xtables.lock: Permission denied" (SELinux).
  See moby/moby issue 41230

- Add a guide for "failed to register layer: ApplyLayer exit status 1 ..." (NFS).
  Close docker/for-linux issue 1172

- Improve guides for slirp4netns.

- Remove v19.03 information (e.g., "cgroup v2 is unsupported, use cgroup v1")

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2021-02-12 19:36:51 +09:00
Akihiro Suda
6fec6ef0c3 engine/security: add more description about ssh://
Previously, the `ssh://` helper was only mentioned in `engine/security/index.md`.

The `ssh://` helper is now documented in "Protect the Docker daemon socket"
(`engine/security/protect-access.md`, nee `engine/security/https.md`).

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2021-02-10 19:06:09 +09:00
Batuhan Apaydın
cc7d5b6697 Update trust_delegation.md
I think the target role should be target/releases instead of the targets/targets.
2020-12-10 16:52:37 +03:00
Akihiro Suda
1976c2178c v20.10 docs for cgroup v2 and rootless
* Docker now supports cgroup v2 (both rootful and rootless)
* Rootless mode graduated from experimental
* New storage driver: fuse-overlayfs

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2020-11-12 12:47:16 +09:00
Fabian M
65d98b3cd9 Fix syntax: Add missing backtick 2020-11-08 22:33:15 +01:00
Sebastiaan van Stijn
2ce808edc0 Remove references to obsolete engine versions
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-26 15:45:07 +01:00
Sebastiaan van Stijn
c119ed174e Use https:// for links and examples
Found these using `http://[^lp10\*`<][^o]` (to exclude "localhost" and IP-addresses)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-13 12:09:11 +02:00
Sebastiaan van Stijn
393d3f6566 Add rel="noopener" to external links
See https://web.dev/external-anchors-use-rel-noopener/

Using noopener, as that addresses the security issue. "noreferer" blocks
the REFERER header, which may still be useful for some target URLs.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-12 13:09:30 +02:00
Sebastiaan van Stijn
d105bd05ca trust: use "content_trust" as trust home page
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-07 13:17:34 +02:00
Sebastiaan van Stijn
dc81cb8bb5 engine: remove old trust index page
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-07 13:17:31 +02:00
Sebastiaan van Stijn
0bbe9c32fb Fix various broken links
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-07 12:49:22 +02:00
Florencio Cano
fff272f7e3 Fix link to default capabilities 2020-10-02 14:17:00 +02:00
Sebastiaan van Stijn
3823de5c50 engine/security: move landing page
Generated yaml files were temporarily updated manually (pending
pull request to be merged in the upstream docker/cli repository)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-09-29 21:27:08 +02:00
Sebastiaan van Stijn
e314b897b2 engine/security: remove old index page
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-09-29 21:03:45 +02:00
Maximillian Fan Xavier
cfba81f6b5 Fix url #11349
Signed-off-by: Maximillian Fan Xavier <maximillianfx@gmail.com>
2020-09-26 17:00:35 -03:00
Maximillian Fan Xavier
e04c266454 Fix link to dct #11349
Signed-off-by: Maximillian Fan Xavier <maximillianfx@gmail.com>
2020-09-26 16:52:39 -03:00
Ryo Ota
6469b210cc use .tgz instead of .tar.gz 2020-09-04 07:36:23 +09:00
Aðalsteinn Rúnarsson
51cf315c4e Change wording for setting capabilities lists
Update the wording for allow/deny approach for setting capabilities.
2020-08-27 15:07:46 +00:00
Sebastiaan van Stijn
021e13a5ed Remove EE "trust pinning" section
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-07-02 23:37:01 +02:00