Skip to content

docker-compose in docker #42

Closed
Closed
@tinytelly

Description

@tinytelly

I have docker-compose installed on the server like this:

$ docker-compose --version
docker-compose version 1.8.1, build 878cff1
$ which docker-compose
/usr/local/bin/docker-compose

I start my docker container like this:

docker run --rm -v /var/run/docker.sock:/var/run/docker.sock myservice:latest

and myservice:lastest is built from

FROM docker:latest

inside the container I call a bash script that does docker things..and all works fine.
I also want to call docker-compose and have it use the docker-compose on the host in the same as docker does.

Not sure how to do this.....any ideas?

Thanks
Matt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions