Verzeichnis suchen
Compose About versions and upgrading (Compose) ASP.NET Core + SQL Server on Linux (Compose) CLI environment variables (Compose) Command-line completion (Compose) Compose(组成) Compose command-line reference(组合命令行参考) Control startup order (Compose) Django and PostgreSQL (Compose) Docker stacks and distributed application bundles (Compose) docker-compose build(docker-compose构建) docker-compose bundle docker-compose config docker-compose create docker-compose down docker-compose events docker-compose exec docker-compose help docker-compose images docker-compose kill docker-compose logs docker-compose pause docker-compose port docker-compose ps docker-compose pull docker-compose push docker-compose restart docker-compose rm docker-compose run docker-compose scale docker-compose start docker-compose stop docker-compose top docker-compose unpause docker-compose up Environment file (Compose) Environment variables in Compose Extend services in Compose Frequently asked questions (Compose) Getting started (Compose) Install Compose Link environment variables (deprecated) (Compose) Networking in Compose Overview of Docker Compose Overview of docker-compose CLI Quickstart: Compose and WordPress Rails and PostgreSQL (Compose) Sample apps with Compose Using Compose in production Using Compose with Swarm Engine .NET Core application (Engine) About images, containers, and storage drivers (Engine) Add nodes to the swarm (Engine) Apply custom metadata (Engine) Apply rolling updates (Engine) apt-cacher-ng Best practices for writing Dockerfiles (Engine) Binaries (Engine) Bind container ports to the host (Engine) Breaking changes (Engine) Build your own bridge (Engine) Configure container DNS (Engine) Configure container DNS in user-defined networks (Engine) CouchDB (Engine) Create a base image (Engine) Create a swarm (Engine) Customize the docker0 bridge (Engine) Debian (Engine) Default bridge network Delete the service (Engine) Deploy a service (Engine) Deploy services to a swarm (Engine) Deprecated Engine features Docker container networking (Engine) Docker overview (Engine) Docker run reference (Engine) Dockerfile reference (Engine) Dockerize an application Drain a node (Engine) Engine FAQ (Engine) Fedora (Engine) Get started (Engine) Get started with macvlan network driver (Engine) Get started with multi-host networking (Engine) How nodes work (Engine) How services work (Engine) Image management (Engine) Inspect the service (Engine) Install Docker (Engine) IPv6 with Docker (Engine) Join nodes to a swarm (Engine) Legacy container links (Engine) Lock your swarm (Engine) Manage nodes in a swarm (Engine) Manage sensitive data with Docker secrets (Engine) Manage swarm security with PKI (Engine) Manage swarm service networks (Engine) Migrate to Engine 1.10 Optional Linux post-installation steps (Engine) Overview (Engine) PostgreSQL (Engine) Raft consensus in swarm mode (Engine) Riak (Engine) Run Docker Engine in swarm mode Scale the service (Engine) SDKs (Engine) Select a storage driver (Engine) Set up for the tutorial (Engine) SSHd (Engine) Storage driver overview (Engine) Store service configuration data (Engine) Swarm administration guide (Engine) Swarm mode key concepts (Engine) Swarm mode overlay network security model (Engine) Swarm mode overview (Engine) Understand container communication (Engine) Use multi-stage builds (Engine) Use swarm mode routing mesh (Engine) Use the AUFS storage driver (Engine) Use the Btrfs storage driver (Engine) Use the Device mapper storage driver (Engine) Use the OverlayFS storage driver (Engine) Use the VFS storage driver (Engine) Use the ZFS storage driver (Engine) Engine: Admin Guide Amazon CloudWatch logs logging driver (Engine) Bind mounts (Engine) Collect Docker metrics with Prometheus (Engine) Configuring and running Docker (Engine) Configuring logging drivers (Engine) Control and configure Docker with systemd (Engine) ETW logging driver (Engine) Fluentd logging driver (Engine) Format command and log output (Engine) Google Cloud logging driver (Engine) Graylog Extended Format (GELF) logging driver (Engine) Journald logging driver (Engine) JSON File logging driver (Engine) Keep containers alive during daemon downtime (Engine) Limit a container's resources (Engine) Link via an ambassador container (Engine) Log tags for logging driver (Engine) Logentries logging driver (Engine) PowerShell DSC usage (Engine) Prune unused Docker objects (Engine) Run multiple services in a container (Engine) Runtime metrics (Engine) Splunk logging driver (Engine) Start containers automatically (Engine) Storage overview (Engine) Syslog logging driver (Engine) tmpfs mounts Troubleshoot volume problems (Engine) Use a logging driver plugin (Engine) Using Ansible (Engine) Using Chef (Engine) Using Puppet (Engine) View a container's logs (Engine) Volumes (Engine) Engine: CLI Daemon CLI reference (dockerd) (Engine) docker docker attach docker build docker checkpoint docker checkpoint create docker checkpoint ls docker checkpoint rm docker commit docker config docker config create docker config inspect docker config ls docker config rm docker container docker container attach docker container commit docker container cp docker container create docker container diff docker container exec docker container export docker container inspect docker container kill docker container logs docker container ls docker container pause docker container port docker container prune docker container rename docker container restart docker container rm docker container run docker container start docker container stats docker container stop docker container top docker container unpause docker container update docker container wait docker cp docker create docker deploy docker diff docker events docker exec docker export docker history docker image docker image build docker image history docker image import docker image inspect docker image load docker image ls docker image prune docker image pull docker image push docker image rm docker image save docker image tag docker images docker import docker info docker inspect docker kill docker load docker login docker logout docker logs docker network docker network connect docker network create docker network disconnect docker network inspect docker network ls docker network prune docker network rm docker node docker node demote docker node inspect docker node ls docker node promote docker node ps docker node rm docker node update docker pause docker plugin docker plugin create docker plugin disable docker plugin enable docker plugin inspect docker plugin install docker plugin ls docker plugin push docker plugin rm docker plugin set docker plugin upgrade docker port docker ps docker pull docker push docker rename docker restart docker rm docker rmi docker run docker save docker search docker secret docker secret create docker secret inspect docker secret ls docker secret rm docker service docker service create docker service inspect docker service logs docker service ls docker service ps docker service rm docker service scale docker service update docker stack docker stack deploy docker stack ls docker stack ps docker stack rm docker stack services docker start docker stats docker stop docker swarm docker swarm ca docker swarm init docker swarm join docker swarm join-token docker swarm leave docker swarm unlock docker swarm unlock-key docker swarm update docker system docker system df docker system events docker system info docker system prune docker tag docker top docker unpause docker update docker version docker volume docker volume create docker volume inspect docker volume ls docker volume prune docker volume rm docker wait Use the Docker command line (Engine) Engine: Extend Access authorization plugin (Engine) Docker log driver plugins Docker network driver plugins (Engine) Extending Engine with plugins Managed plugin system (Engine) Plugin configuration (Engine) Plugins API (Engine) Volume plugins (Engine) Engine: Security AppArmor security profiles for Docker (Engine) Automation with content trust (Engine) Content trust in Docker (Engine) Delegations for content trust (Engine) Deploying Notary (Engine) Docker security (Engine) Docker security non-events (Engine) Isolate containers with a user namespace (Engine) Manage keys for content trust (Engine) Play in a content trust sandbox (Engine) Protect the Docker daemon socket (Engine) Seccomp security profiles for Docker (Engine) Secure Engine Use trusted images Using certificates for repository client verification (Engine) Engine: Tutorials Engine tutorials Network containers (Engine) Get Started Part 1: Orientation Part 2: Containers Part 3: Services Part 4: Swarms Part 5: Stacks Part 6: Deploy your app Machine Amazon Web Services (Machine) Digital Ocean (Machine) docker-machine active docker-machine config docker-machine create docker-machine env docker-machine help docker-machine inspect docker-machine ip docker-machine kill docker-machine ls docker-machine provision docker-machine regenerate-certs docker-machine restart docker-machine rm docker-machine scp docker-machine ssh docker-machine start docker-machine status docker-machine stop docker-machine upgrade docker-machine url Driver options and operating system defaults (Machine) Drivers overview (Machine) Exoscale (Machine) Generic (Machine) Get started with a local VM (Machine) Google Compute Engine (Machine) IBM Softlayer (Machine) Install Machine Machine Machine CLI overview Machine command-line completion Machine concepts and help Machine overview Microsoft Azure (Machine) Microsoft Hyper-V (Machine) Migrate from Boot2Docker to Machine OpenStack (Machine) Oracle VirtualBox (Machine) Provision AWS EC2 instances (Machine) Provision Digital Ocean Droplets (Machine) Provision hosts in the cloud (Machine) Rackspace (Machine) VMware Fusion (Machine) VMware vCloud Air (Machine) VMware vSphere (Machine) Notary Client configuration (Notary) Common Server and signer configurations (Notary) Getting started with Notary Notary changelog Notary configuration files Running a Notary service Server configuration (Notary) Signer configuration (Notary) Understand the service architecture (Notary) Use the Notary client
Figuren

已弃用的引擎功能

Engine 中不推荐使用以下功能列表。要了解有关 Docker Engine 弃用策略的更多信息,请参阅功能弃用策略。

异步service createservice update

已弃用在发行版:v17.05.0

在发行版中默认禁用:v17.09

Docker17.05.0添加一个可选--detach=false选项,以使docker service createdocker service update同步工作。Docker 17.09默认启用此选项,此时该--detach标志可用于使用以前的(异步)行为。

-g and --graph flags on dockerd

已弃用在发行版:v17.05.0

or 命令的-gor --graph标志用于指示存储持久性数据和资源配置的目录,并已被替换为更具描述性的标志。dockerddocker daemon--data-root

这些标志是在 Docker 1.0 之前添加的,因此不会被删除,只会隐藏,以阻止它们的使用。

NetworkSettings 中的顶级网络属性

在版本中弃用: v1.13.0

删除目标版本:v17.12

检查容器时,NetworkSettings包含有关默认(“桥梁”)网络的顶级信息;

EndpointIDGatewayGlobalIPv6AddressGlobalIPv6PrefixLenIPAddressIPPrefixLenIPv6Gateway,和MacAddress

这些属性不赞成使用每个网络属性NetworkSettings.Networks。这些属性在 Docker 1.9中已经被“弃用”了,但为了向后兼容而保留。

更多信息请参阅#17538。

filter参数为/images/json端点

在版本中弃用: v1.13.0

删除目标版本:v17.12

现在filter通过引用(名称或名称:标签)过滤图像列表的参数现在作为常规过滤器实现,名为reference

repository:shortid 图片参考

在版本中弃用: v1.13.0

删除目标版本:v17.12

repository:shortid 用于引用图像的语法很少使用,与标记引用的冲突可能与摘要引用混淆。

docker daemon subcommand

在版本中弃用: v1.13.0

删除目标版本:v17.12

守护进程被移动到一个单独的二进制文件(dockerd),并且应该用来代替。

Duplicate keys with conflicting values in engine labels

在版本中弃用: v1.13.0

删除目标版本:v17.12

具有冲突值的重复键已被弃用。输出中会显示警告,并且将来会返回错误。

MAINTAINER 在Dockerfile中

在版本中弃用: v1.13.0

MAINTAINERLABEL应该用来代替的早期非常有限的形式。

没有版本的API调用

在版本中弃用: v1.13.0

删除目标版本:v17.12

API 版本应提供给所有 API 调用以确保与未来引擎版本的兼容性。例如/containers/json,您现在必须请求,而不是仅仅请求URL /v1.25/containers/json

Backing filesystem without d_type support for overlay/overlay2

在版本中弃用: v1.13.0

删除目标版本:v17.12

如果后备文件系统不支持,则 overlay 和 overlay2 存储驱动程序无法按预期工作d_type。例如,d_type如果使用该ftype=0选项格式化XFS,则不支持。

有关更多信息,请参阅#27358。

三个参数形成 docker import

在版本中弃用: v0.6.7

发布: v1.12.0中删除

docker import命令格式file|URL|- [REPOSITORY [TAG]]自2013年11月起不再使用,不再受支持。

-h shorthand for --help

在版本中弃用: v1.12.0

删除目标版本:v17.09

简写(-h)不如--help在Linux上常见,并且不能在所有子命令上使用(由于它与例如-h/ --hostnameon 相冲突docker create)。出于这个原因,-h速记没有打印在子命令的“用法”输出中,也没有记录,现在标记为“已弃用”。

-e and --email flags on docker login

在版本中弃用: v1.11.0

发布: v17.06中删除

如果给定的用户名不存在,docker login 命令将删除为目标注册表自动注册帐户的功能。由于此更改,电子邮件标志不再需要,并且将被弃用。

Separator (:) of --security-opt flag on docker run

在版本中弃用: v1.11.0

删除目标版本:v17.06

该标志--security-opt不再使用冒号分隔符(:)来分割键和值,它使用相同的符号(=)与其他类似的标志一致,如--storage-opt

/containers/(id or name)/copy 端点

在版本中弃用: v1.8.0

发布: v1.12.0中删除

端点/containers/(id or name)/copy已弃用,以支持/containers/(id or name)/archive

API中的模糊事件字段

已弃用In: v1.10.0

字段IDStatus并且From在事件API已被弃用,取而代之的是更丰富的结构。查看新格式的事件API文档。

-f flag on docker tag

已弃用In: v1.10.0

发布: v1.12.0中删除

为了使标签在各种docker命令中保持一致,命令中的-f标志docker tag已被弃用。不再需要指定-f将标签从一个图像移动到另一个图像。docker如果-f标志丢失并且指定的标签已被使用,也不会产生错误。

HostConfig 在 API 容器启动

已弃用In: v1.10.0

发布: v1.12.0中删除

传递一个HostConfigto POST /containers/{name}/start被弃用,以便在容器创建(POST /containers/create)时定义它。

--before and --since flags on docker ps

已弃用In: v1.10.0

发布: v1.12.0中删除

docker ps --beforedocker ps --since选项已被弃用。使用docker ps --filter=before=...docker ps --filter=since=...不是。

--automated and --stars flags on docker search

在版本: v1.12.0中弃用

删除目标版本:v17.09

docker search --automateddocker search --stars选项已被弃用。使用docker search --filter=is-automated=...docker search --filter=stars=...不是。

驱动程序特定日志标记

弃用版本: v1.9.0

发布: v1.12.0中删除

现在,日志标记通过不同的日志记录驱动程序以标准方式生成。正因为如此,驱动程序特定的日志标记选项syslog-taggelf-tagfluentd-tag已被弃用,以支持通用tag选项。

docker --log-driver=syslog --log-opt tag="{{.ImageName}}/{{.Name}}/{{.ID}}"

LXC内置的exec驱动程序

在版本中弃用: v1.8.0

版本中删除: v1.10.0

内置的 LXC 执行驱动程序,lxc-conf 标志和 API 字段已被删除。

旧命令行选项

在发布时被否决:v1.8.0

在释放时移除:v1.10.0

这些标志-d--daemon被弃用,取而代之的的daemon子命令:

docker daemon -H ...

-opt某些命令行选项的以下single-dash()变体已弃用,并用双短划线选项(--opt)替换:

docker attach -nostdin
docker attach -sig-proxy
docker build -no-cache
docker build -rm
docker commit -author
docker commit -run
docker events -since
docker history -notrunc
docker images -notrunc
docker inspect -format
docker ps -beforeId
docker ps -notrunc
docker ps -sinceId
docker rm -link
docker run -cidfile
docker run -dns
docker run -entrypoint
docker run -expose
docker run -link
docker run -lxc-conf
docker run -n
docker run -privileged
docker run -volumes-fromdocker search -notrunc
docker search -stars
docker search -t
docker search -trusted
docker tag -force

以下双破折号选项已被弃用且不能替代:

docker run --cpuset
docker run --networking
docker ps --since-id
docker ps --before-id
docker search --trusted

在版本中弃用: v1.5.0

发布: v1.12.0中删除

单破折号(-help)被删除,赞成双破折号--help

docker -help
docker [COMMAND] -help

--runflag on docker commit

在版本中已弃用: v0.10.0

版本中删除: v1.13.0

该标志--run的搬运工的提交(及其短版-run)有利于被弃用--changes,允许通过标记Dockerfile的命令。

与V1注册管理机构互动

默认情况下禁用发行版:v17.06

删除目标版本:v17.12

版本1.8.3加入的标志(--disable-legacy-registry=false),其防止搬运工守护程序从pullpushlogin操作对V1注册表。尽管默认情况下已启用,但这表示意图弃用v1协议。

在1.13中删除了对公共注册表v1协议的支持。任何使用v1的镜像配置都应该更新为使用v2注册镜像。

Docker Content Trust ENV密码短语变量名称更改

弃用版本: v1.9.0

发布: v1.12.0中删除

自1.9以来,Docker Content Trust 脱机密钥已重命名为 Root 密钥,标记密钥已重命名为 Repository 密钥。由于这种重命名,我们也在改变相应的环境变量

  • DOCKER_CONTENT_TRUST_OFFLINE_PASSPHRASE现在被命名为DOCKER_CONTENT_TRUST_ROOT_PASSPHRASE

  • DOCKER_CONTENT_TRUST_TAGGING_PASSPHRASE现在名为DOCKER_CONTENT_TRUST_REPOSITORY_PASSPHRASE

--api-enable-cors flag on dockerd

弃用版本: v1.6.0

删除目标版本:v17.09

该标志--api-enable-cors自v1.6.0开始不再使用。改用标志--api-cors-header

Vorheriger Artikel: Nächster Artikel: