首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

docker-compose push

Usage: push [options] [SERVICE...]

Options:
    --ignore-push-failures  Push what it can and ignores images with push failures.

将服务的图像推送到它们各自的位置registry/repository

做出以下假设:

  • 您正在推送您在本地创建的图像
  • 您可以访问构建密钥

version: '3'
services:
  service1:
    build: .
    image: localhost:5000/yourimage  # goes to local registry

  service2:
    build: .
    image: youruser/yourimage  # goes to youruser DockerHub registry

扫码关注腾讯云开发者

领取腾讯云代金券