Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run Weave Scope in Docker-compose? #3887

Open
ZedZipDev opened this issue Oct 3, 2021 · 2 comments
Open

How to run Weave Scope in Docker-compose? #3887

ZedZipDev opened this issue Oct 3, 2021 · 2 comments

Comments

@ZedZipDev
Copy link

My OS is WIndows 10.
That is my docker-compose file

version: '3.4'
services:
  scope:
    image: weaveworks/weave:latest
    network_mode: "host"
    pid: "host"
    privileged: true
    labels:
      - "works.weave.role=system"
    volumes:
      - "/var/run/docker.sock:/var/run/docker.sock:rw"
    command:
      - "--probe.docker=true"

Then run docker-compose:

PS D:\WeaveScope> docker-compose up -d
Pulling scope (weaveworks/weave:latest)...
latest: Pulling from weaveworks/weave
21c83c524219: Pull complete
02ec35b6f627: Pull complete
c40f141adde9: Pull complete
a63db11be476: Pull complete
e8d3a1b4fb09: Pull complete
Digest: sha256:a4f1dd7b4fcd3a391c165f1ab20c5f72330c22fe0918c899be67763717bb2a28
Status: Downloaded newer image for weaveworks/weave:latest
Creating weavescope_scope_1 ... done

```But when  I run browser http://localhost:4040 I receive "This site can’t be reached"

What I do wrong?How to fix it?

@ZedZipDev ZedZipDev changed the title How to run Weave Scope in Docker? How to run Weave Scope in Docker-compose? Oct 3, 2021
@mosoftwareenterprises
Copy link

I am seeing the same issue. I am running Docker on Windows with WSL2.
#3809 is related/duplicate.

@mosoftwareenterprises
Copy link

This works for me for Docker on WSL:

  scope:
    image: weaveworks/scope:1.13.2
    # network_mode: "host"
    # pid: "host"
    privileged: true
    ports:
      - "0.0.0.0:4040:4040"
    labels:
      - "works.weave.role=system"
    volumes:
      - "/var/run/docker.sock:/var/run/docker.sock:rw"
    command:
      - "--probe.docker=true"

This is a variation of : #2842 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants