Add a new container 添加新容器
Select Containers from the menu then click Add container.
从菜单中选择容器,然后单击添加容器。
Configure the container settings as required.
根据需要配置容器设置。
Image configuration section
图像配置部分
图像配置部分
Field/Option 领域/选项 | Overview 概述 |
---|---|
Name 名称 | Give the container a descriptive name. |
Registry 登记处 | Select the registry that contains the image that you want to use for your container. |
Image 图片 | Enter the name of the image you want to use. |
Always pull the image 始终拉动图像 | Toggle on to enforce pulling the image from the registry instead of using the locally cached copy (if you have used the image previously). |
When using Docker Hub you can use the Search button to search for the image you have entered, and ensure that you have the correct name and tag. Portainer also displays the number of pulls remaining for your Docker Hub account when using an anonymous account.
使用 Docker Hub 时,您可以使用 "搜索 "按钮搜索您输入的镜像,并确保您输入了正确的名称和标签。使用匿名账户时,Portainer 还会显示 Docker Hub 账户的剩余拉取次数。
Alternatively you can switch to advanced mode to manually enter registry and image details. This is useful if you want to do a one-off container deployment from a registry that isn't configured within Portainer.
您也可以切换到高级模式,手动输入注册表和映像的详细信息。如果你想从一个未在 Portainer 中配置的注册表中进行一次性容器部署,这将非常有用。
Webhooks 网络钩子
Toggle Create a container webhook on to create a webhook for the container. You can send a POST request to this endpoint to automate pulling the most up-to-date image and re-deploy your container.
切换 "创建容器 webhook "以创建容器的 webhook。您可以向该端点发送 POST 请求,自动提取最新映像并重新部署容器。
Network ports configuration section
网络端口配置部分
网络端口配置部分
Field/Option 领域/选项 | Overview 概述 |
---|---|
Publish all exposed network ports to random host ports | Toggle on to allow Portainer to randomly assign ports on the host to the exposed ports in the container. |
Manual network port publishing | Click publish a new network port to create manual port mappings for the container. |
Actions section 行动部分
Field/Option 领域/选项 | Overview 概述 |
---|---|
Auto remove 自动移除 | Toggle this option on to automatically remove the container once it exits. This is useful if you want to run a container only once. |
Once complete, set any advanced options (see below) then click Deploy the container. If successful your container will be shown in the container list.
完成后,设置任何高级选项(见下文),然后单击 "部署容器"。如果成功,容器将显示在容器列表中。
Advanced container settings
高级容器设置
高级容器设置
Choose from a range of options to customize the deployment.
从一系列选项中进行选择,自定义部署。
Last updated
最后更新于 2 年前