mirror of https://github.com/docker/docs.git
Add changes requested by Docs team
Signed-off-by: Bruno Sousa <bruno.sousa@docker.com>
This commit is contained in:
parent
a3f188e8f2
commit
aeb69d534f
|
@ -1330,8 +1330,6 @@ manuals:
|
|||
title: Docker Scan
|
||||
- path: /engine/sbom/
|
||||
title: Docker SBOM (Experimental)
|
||||
- path: /engine/containerd/
|
||||
title: containerd integration (Experimental)
|
||||
- path: /engine/release-notes/
|
||||
title: Release notes
|
||||
- sectiontitle: Previous versions
|
||||
|
|
|
@ -0,0 +1,179 @@
|
|||
---
|
||||
title: How to
|
||||
description: Viewing the containerd integration in Docker for image and file system management
|
||||
keywords: Docker, containerd, engine, image store, lazy-pull
|
||||
toc_min: 1
|
||||
toc_max: 2
|
||||
---
|
||||
|
||||
This page presents instructions about how to activate the new containerd feature for image and file system management in the Docker Engine.
|
||||
|
||||
> **Warning**
|
||||
>
|
||||
> The containerd image store management feature is currently experimental. This may change or be removed from future releases.
|
||||
{: .warning }
|
||||
|
||||
## Enable or disable containerd image store
|
||||
The experimental containerd image store feature is switched off by default. To change your settings:
|
||||
1. Navigate to Settings, or Preferences if you’re a Mac user.
|
||||
2. Select the Experimental features tab.
|
||||
3. Next to Use containerd for pulling and storing images, select or clear the checkbox to set your desired state.
|
||||
|
||||
{:width="750px"}
|
||||
|
||||
## Simple use
|
||||
Show the server version and the storage driver:
|
||||
|
||||
```
|
||||
% docker info
|
||||
Client:
|
||||
Context: default
|
||||
Debug Mode: false
|
||||
Plugins:
|
||||
buildx: Docker Buildx (Docker Inc., v0.9.1)
|
||||
compose: Docker Compose (Docker Inc., v2.10.2)
|
||||
extension: Manages Docker extensions (Docker Inc., v0.2.9)
|
||||
sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc., 0.6.0)
|
||||
scan: Docker Scan (Docker Inc., v0.19.0)
|
||||
|
||||
Server:
|
||||
Containers: 0
|
||||
Running: 0
|
||||
Paused: 0
|
||||
Stopped: 0
|
||||
Images: 0
|
||||
Server Version: 22.06.0-beta.0-372-gd3bb8227ce.m
|
||||
Storage Driver: stargz
|
||||
driver-type: io.containerd.snapshotter.v1
|
||||
Logging Driver: json-file
|
||||
Cgroup Driver: cgroupfs
|
||||
Cgroup Version: 2
|
||||
Plugins:
|
||||
Volume: local
|
||||
Network: bridge host ipvlan macvlan null overlay
|
||||
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
|
||||
Swarm: inactive
|
||||
Runtimes: runc io.containerd.runc.v2
|
||||
Default Runtime: runc
|
||||
Init Binary: docker-init
|
||||
containerd version: 9cd3357b7fd7218e4aec3eae239db1f68a5a6ec6
|
||||
runc version: v1.1.4-0-g5fd4c4d
|
||||
```
|
||||
|
||||
```
|
||||
init version: de40ad0
|
||||
Security Options:
|
||||
seccomp
|
||||
Profile: builtin
|
||||
cgroupns
|
||||
Kernel Version: 5.10.124-linuxkit
|
||||
Operating System: Docker Desktop
|
||||
OSType: linux
|
||||
Architecture: aarch64
|
||||
CPUs: 5
|
||||
Total Memory: 7.653GiB
|
||||
Name: docker-desktop
|
||||
ID: f4d28427-96df-404c-b47b-647fe5138e2a
|
||||
Docker Root Dir: /var/lib/docker
|
||||
Debug Mode: false
|
||||
HTTP Proxy: http.docker.internal:3128
|
||||
HTTPS Proxy: http.docker.internal:3128
|
||||
No Proxy: hubproxy.docker.internal
|
||||
Registry: https://index.docker.io/v1/
|
||||
Labels:
|
||||
Experimental: false
|
||||
Insecure Registries:
|
||||
hubproxy.docker.internal:5000
|
||||
127.0.0.0/8
|
||||
Live Restore Enabled: false
|
||||
```
|
||||
Run a simple container:
|
||||
```
|
||||
% docker run --rm hello-world
|
||||
Unable to find image 'hello-world:latest' locally
|
||||
7d246653d051: Download complete
|
||||
432f982638b3: Download complete
|
||||
46331d942d63: Download complete
|
||||
7050e35b49f5: Downloading [> ] 0B/3.208kB
|
||||
|
||||
Hello from Docker!
|
||||
This message shows that your installation appears to be working correctly.
|
||||
...
|
||||
%
|
||||
```
|
||||
Run with port settings:
|
||||
```
|
||||
% docker run -p 8080:80 -d nginx
|
||||
Unable to find image 'nginx:latest' locally
|
||||
b95a99feebf7: Download complete
|
||||
91d5b6827ff7: Download complete
|
||||
fc5ec3f147e4: Download complete
|
||||
5b1423465504: Download complete
|
||||
1cdde8b981f2: Download complete
|
||||
6c0b05f215c0: Download complete
|
||||
004f1937a10a: Download complete
|
||||
fd61d71c75fe: Download complete
|
||||
717bf61a04cf: Download complete
|
||||
8b6a7e0df8edbe91dfa77716a5e84ca28348f44f545a0d34c70a8987c56e63e0
|
||||
%
|
||||
```
|
||||
Confirm nginx is running:
|
||||
```
|
||||
% docker ps
|
||||
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||
93b4d60dfd08 nginx "/docker-entrypoint.…" 3 seconds ago Up 3 seconds 0.0.0.0:8080->80/tcp stoic_mccarthy
|
||||
```
|
||||
{:width="750px"}
|
||||
|
||||
## Building multi-platform images
|
||||
Sample Dockerfile:
|
||||
```
|
||||
FROM alpine
|
||||
|
||||
ENTRYPOINT ["echo", "hello friends"]
|
||||
```
|
||||
Build a multi-platform image:
|
||||
```
|
||||
% docker buildx build --platform linux/amd64,linux/arm64 -t <username>/hello-friends .
|
||||
[+] Building 0.7s (7/7) FINISHED
|
||||
=> [internal] load .dockerignore 0.0s
|
||||
=> => transferring context: 2B 0.0s
|
||||
=> [internal] load build definition from Dockerfile 0.0s
|
||||
=> => transferring dockerfile: 88B 0.0s
|
||||
=> [linux/arm64 internal] load metadata for docker.io/library/alpine:latest 0.6s
|
||||
=> [linux/amd64 internal] load metadata for docker.io/library/alpine:latest 0.6s
|
||||
=> [linux/amd64 1/1] FROM docker.io/library/alpine@sha256:bc41182d7ef5ffc53a40b044e725193bc10142a1243f395ee852a8d9730fc2ad 0.0s
|
||||
=> => resolve docker.io/library/alpine@sha256:bc41182d7ef5ffc53a40b044e725193bc10142a1243f395ee852a8d9730fc2ad 0.0s
|
||||
=> CACHED [linux/arm64 1/1] FROM docker.io/library/alpine@sha256:bc41182d7ef5ffc53a40b044e725193bc10142a1243f395ee852a8d9730fc2ad 0.0s
|
||||
=> => resolve docker.io/library/alpine@sha256:bc41182d7ef5ffc53a40b044e725193bc10142a1243f395ee852a8d9730fc2ad 0.0s
|
||||
=> exporting to image 0.0s
|
||||
=> => exporting layers 0.0s
|
||||
=> => exporting manifest sha256:71bf02afcd7a791c268aa935027f1dc05238f5b5017d755d0fd6d9c71c1b79b9 0.0s
|
||||
=> => exporting config sha256:f1edbf6b99d22831f9312ab2b8b7642a904c614000bb8369ed673848f4f03578 0.0s
|
||||
=> => exporting manifest sha256:e41da7320a956163128d77ad69c8109af4799b41bd2e8e660bc6f01136b67f45 0.0s
|
||||
=> => exporting config sha256:4a5580ab8335432cf6cea7ff695f177d120fa2c9aa4002525025888e3cae16ee 0.0s
|
||||
=> => exporting manifest list sha256:339d089b539c950268de1edeef9652584e16efa51ea2c84ee586d3143b97234d 0.0s
|
||||
=> => naming to docker.io/<username>/hello-friends:latest 0.0s
|
||||
=> => unpacking to docker.io/<username>/hello-friends:latest
|
||||
%
|
||||
```
|
||||
Run multi-platform image:
|
||||
```
|
||||
% docker run <username>/hello-friends
|
||||
hello friends
|
||||
```
|
||||
Push a multiplatform image:
|
||||
```
|
||||
% docker push <username>/hello-friends
|
||||
Using default tag: latest
|
||||
f1edbf6b99d2: Pushed
|
||||
213ec9aee27d: Pushed
|
||||
71bf02afcd7a: Pushed
|
||||
e41da7320a95: Pushed
|
||||
339d089b539c: Pushed
|
||||
4a5580ab8335: Pushed
|
||||
9b18e9b68314: Pushed
|
||||
%
|
||||
```
|
||||
View Tags on DockerHub to see multi-platform result:
|
||||
{:width="750px"}
|
|
@ -1,28 +0,0 @@
|
|||
---
|
||||
title: containerd integration with Docker Engine
|
||||
description: Viewing the containerd integration in Docker for image and file system management
|
||||
keywords: Docker, containerd, engine, image store, lazy-pull
|
||||
toc_min: 1
|
||||
toc_max: 2
|
||||
---
|
||||
|
||||
This page presents information about the on-going integration of containerd for image and file system management in the Docker Engine.
|
||||
|
||||
> **Warning**
|
||||
>
|
||||
> The containerd image store management feature is currently experimental. This may change or be removed from future releases.
|
||||
{: .warning }
|
||||
|
||||
## 2022-09-01
|
||||
Beta release support of containerd for image management as an Experimental Feature in Docker Desktop 4.12.0.
|
||||
|
||||
### New
|
||||
Initial implementation of the Docker commands: `run`, `commit`, `build`, `push`, `load`, `search` and `save`.
|
||||
|
||||
### Known issues
|
||||
- The containerd integration requires Buildx version 0.9.0 or newer. On Docker Desktop for Linux (DD4L), validate the locally installed version meets this requirement. If an older version is installed, the Docker daemon will report an error: `multiple platforms feature is currently not supported for docker driver. Please switch to a different driver`.
|
||||
|
||||
## Feedback
|
||||
|
||||
Thanks for trying the new features available with containerd. We’d love to hear from you. You can provide feedback and report any bugs through the Issues tracker in the
|
||||
[feedback form](https://dockr.ly/3PODIhD){: target="_blank" rel="noopener" class="_"}.
|
Binary file not shown.
After Width: | Height: | Size: 739 KiB |
Binary file not shown.
After Width: | Height: | Size: 168 KiB |
Binary file not shown.
After Width: | Height: | Size: 115 KiB |
Loading…
Reference in New Issue