Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

docker-compose build context tag own name

build: ./dir
image: custom-image-name:tag
Comment

PREVIOUS NEXT
Code Example
Shell :: stop apache2 
Shell :: install aws cli v2 mac 
Shell :: close tcp port on mac 
Shell :: open port 8080 fedora 
Shell :: ERR_NO_CERTIFICATES: Encountered adb error: NoCertificates. ionic 
Shell :: tar zip multiple files 
Shell :: git remove files from old commits 
Shell :: bash replace comma with newline 
Shell :: Count subdirectories within a directory 
Shell :: how to add images to git readme 
Shell :: bash count lines 
Shell :: command to change user default shell 
Shell :: fatal: invalid gitfile format 
Shell :: arch linxu 
Shell :: split string and create array bash 
Shell :: install composer on ubuntu 20.04 
Shell :: git log with simple graph 
Shell :: remove commit from github 
Shell :: add ssh keys to github 
Shell :: failed to start openbsd secure shell server 
Shell :: upgrade ubuntu command line 
Shell :: k8s set default namespace 
Shell :: pip not installing packages 
Shell :: how to reset local git credentials of android studio 
Shell :: install firebase on flutter 
Shell :: install synergy ubuntu 
Shell :: how to run docker daemon on ubuntu 
Shell :: golang live reload 
Shell :: install ssl certificate ubuntu nginx 
Shell :: bash: conda: command not found 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =