Answers for "docker-compose build context tag own name"

0

docker-compose build context tag own name

#It seems the docs/tool have been updated and you can now add the image tag to your script. This was successful for me.

#Example:

version: '2'
services:

  baggins.api.rest:
    image: my.image.name:rc2  <<----
    build:
      context: ../..
      dockerfile: app/Docker/Dockerfile.release
    ports:
      ...
      
https://docs.docker.com/compose/compose-file/#build
Posted by: Guest on October-24-2021
0

docker-compose build context tag own name

build: ./dir
image: custom-image-name:tag
Posted by: Guest on October-24-2021

Code answers related to "docker-compose build context tag own name"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language