# Docker-machine to Azure using compose

**URL:** <https://forums.docker.com/t/docker-machine-to-azure-using-compose/46194>\
**Category:** Machine\
**Created:** [February 12, 2018, 1:36pm UTC](https://forums.docker.com/t/docker-machine-to-azure-using-compose/46194 "2018-02-12T13:36:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yaofei](https://avatars.discourse-cdn.com/v4/letter/y/59ef9b/32.png) [@yaofei](https://forums.docker.com/u/yaofei)\
**Post date:** [February 12, 2018, 1:36pm UTC](https://forums.docker.com/t/docker-machine-to-azure-using-compose/46194/1 "2018-02-12T13:36:03Z")

</div>

Im using docker-machine create -d azure. Everything works as expected in terms of provisioning Docker on Azure Ubuntu host.

But, when I run my docker-compose local and it got the following error.

```
prometheus | level=error ts=2018-02-12T13:29:08.730387276Z caller=main.go:579 err="Error loading config couldn't load configuration (--config.file=/etc/prometheus/prometheus.yml): open /etc/prometheus/prometheus.yml: no such file or directory"

```

Im using bind-mount for Prmetheus configureation as below:

```
    volumes:
      - ./prometheus:/etc/prometheus
      - prometheus_data:/prometheus

```

So, it appears that you cannot bind-mount remotely.

Please advise.  
Thanks

---

<div class="post-metadata">

**Author:** ![yaofei](https://avatars.discourse-cdn.com/v4/letter/y/59ef9b/32.png) [@yaofei](https://forums.docker.com/u/yaofei)\
**Post date:** [February 12, 2018, 1:46pm UTC](https://forums.docker.com/t/docker-machine-to-azure-using-compose/46194/2 "2018-02-12T13:46:56Z")

</div>

I think docker-compose expect file locally, below is the ref:

> **[docker-machine scp](https://docs.docker.com/machine/reference/scp/#specifying-file-paths-for-remote-deployments)**
>
> Copy files from your local host to a machine, from machine to machine, or from a machine to your local host using scp. The notation is machinename:/path/to/files for the arguments;...

so, you have docker-machine scp.

Thanks
