Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #build #context #tag
ADD COMMENT
Topic
Name
5+5 =