目录搜索
ComposeAbout 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 bundledocker-compose configdocker-compose createdocker-compose downdocker-compose eventsdocker-compose execdocker-compose helpdocker-compose imagesdocker-compose killdocker-compose logsdocker-compose pausedocker-compose portdocker-compose psdocker-compose pulldocker-compose pushdocker-compose restartdocker-compose rmdocker-compose rundocker-compose scaledocker-compose startdocker-compose stopdocker-compose topdocker-compose unpausedocker-compose upEnvironment file (Compose)Environment variables in ComposeExtend services in ComposeFrequently asked questions (Compose)Getting started (Compose)Install ComposeLink environment variables (deprecated) (Compose)Networking in ComposeOverview of Docker ComposeOverview of docker-compose CLIQuickstart: Compose and WordPressRails and PostgreSQL (Compose)Sample apps with ComposeUsing Compose in productionUsing Compose with SwarmEngine.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-ngBest 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 networkDelete the service (Engine)Deploy a service (Engine)Deploy services to a swarm (Engine)Deprecated Engine featuresDocker container networking (Engine)Docker overview (Engine)Docker run reference (Engine)Dockerfile reference (Engine)Dockerize an applicationDrain a node (Engine)EngineFAQ (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.10Optional Linux post-installation steps (Engine)Overview (Engine)PostgreSQL (Engine)Raft consensus in swarm mode (Engine)Riak (Engine)Run Docker Engine in swarm modeScale 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 GuideAmazon 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 mountsTroubleshoot 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: CLIDaemon CLI reference (dockerd) (Engine)dockerdocker attachdocker builddocker checkpointdocker checkpoint createdocker checkpoint lsdocker checkpoint rmdocker commitdocker configdocker config createdocker config inspectdocker config lsdocker config rmdocker containerdocker container attachdocker container commitdocker container cpdocker container createdocker container diffdocker container execdocker container exportdocker container inspectdocker container killdocker container logsdocker container lsdocker container pausedocker container portdocker container prunedocker container renamedocker container restartdocker container rmdocker container rundocker container startdocker container statsdocker container stopdocker container topdocker container unpausedocker container updatedocker container waitdocker cpdocker createdocker deploydocker diffdocker eventsdocker execdocker exportdocker historydocker imagedocker image builddocker image historydocker image importdocker image inspectdocker image loaddocker image lsdocker image prunedocker image pulldocker image pushdocker image rmdocker image savedocker image tagdocker imagesdocker importdocker infodocker inspectdocker killdocker loaddocker logindocker logoutdocker logsdocker networkdocker network connectdocker network createdocker network disconnectdocker network inspectdocker network lsdocker network prunedocker network rmdocker nodedocker node demotedocker node inspectdocker node lsdocker node promotedocker node psdocker node rmdocker node updatedocker pausedocker plugindocker plugin createdocker plugin disabledocker plugin enabledocker plugin inspectdocker plugin installdocker plugin lsdocker plugin pushdocker plugin rmdocker plugin setdocker plugin upgradedocker portdocker psdocker pulldocker pushdocker renamedocker restartdocker rmdocker rmidocker rundocker savedocker searchdocker secretdocker secret createdocker secret inspectdocker secret lsdocker secret rmdocker servicedocker service createdocker service inspectdocker service logsdocker service lsdocker service psdocker service rmdocker service scaledocker service updatedocker stackdocker stack deploydocker stack lsdocker stack psdocker stack rmdocker stack servicesdocker startdocker statsdocker stopdocker swarmdocker swarm cadocker swarm initdocker swarm joindocker swarm join-tokendocker swarm leavedocker swarm unlockdocker swarm unlock-keydocker swarm updatedocker systemdocker system dfdocker system eventsdocker system infodocker system prunedocker tagdocker topdocker unpausedocker updatedocker versiondocker volumedocker volume createdocker volume inspectdocker volume lsdocker volume prunedocker volume rmdocker waitUse the Docker command line (Engine)Engine: ExtendAccess authorization plugin (Engine)Docker log driver pluginsDocker network driver plugins (Engine)Extending Engine with pluginsManaged plugin system (Engine)Plugin configuration (Engine)Plugins API (Engine)Volume plugins (Engine)Engine: SecurityAppArmor 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 EngineUse trusted imagesUsing certificates for repository client verification (Engine)Engine: TutorialsEngine tutorialsNetwork containers (Engine)Get StartedPart 1: OrientationPart 2: ContainersPart 3: ServicesPart 4: SwarmsPart 5: StacksPart 6: Deploy your appMachineAmazon Web Services (Machine)Digital Ocean (Machine)docker-machine activedocker-machine configdocker-machine createdocker-machine envdocker-machine helpdocker-machine inspectdocker-machine ipdocker-machine killdocker-machine lsdocker-machine provisiondocker-machine regenerate-certsdocker-machine restartdocker-machine rmdocker-machine scpdocker-machine sshdocker-machine startdocker-machine statusdocker-machine stopdocker-machine upgradedocker-machine urlDriver 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 MachineMachineMachine CLI overviewMachine command-line completionMachine concepts and helpMachine overviewMicrosoft Azure (Machine)Microsoft Hyper-V (Machine)Migrate from Boot2Docker to MachineOpenStack (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)NotaryClient configuration (Notary)Common Server and signer configurations (Notary)Getting started with NotaryNotary changelogNotary configuration filesRunning a Notary serviceServer configuration (Notary)Signer configuration (Notary)Understand the service architecture (Notary)Use the Notary client
文字

已弃用的引擎功能

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

上一篇:下一篇: