Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker Compose CLI Flags

I am not sure how to run the docker-compose equivalent of the following...

docker run -d -p 8080:9000 -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer --logo "https://www.docker.com/sites/all/themes/docker/assets/images/brand-full.svg"`

So far, I have the following, which I know works...

ui:   
   image: portainer/portainer
   container_name: ui
   restart: always
   volumes:
     - '/var/run/docker.sock:/var/run/docker.sock'
   expose:
     - 9000
   ports:
     - 8080:9000

Specifically, I can't figure out how the --logo flag translates to compose.

like image 494
TheJediCowboy Avatar asked Dec 20 '16 02:12

TheJediCowboy


1 Answers

docker run does not mention any --logo parameter in its reference man page.

That means it could maybe represent a parameter pass to the default CMD of the container portainer/portainer being run.
That seems to be the case in issue 399:

You can use the CLI flags in the command field of your docker-compose file:

  ui:
    image: portainer/portainer
    command: portainer --logo http://mylogo.com -l owner=acme --templates http://mytemplates.com
    container_name: ui
    restart: always
    volumes:
      - '/var/run/docker.sock:/var/run/docker.sock' 

Tony points out in the comments to a docker-compose example

like image 67
VonC Avatar answered Oct 01 '22 04:10

VonC