Installing problem running with windows docker desktop
Created by: JIAQI13
error when running docker run --publish 7080:7080 --publish 127.0.0.1:3370:3370 --rm --volume ~/.sourcegraph/config:/etc/sourcegraph --volume ~/.sourcegraph/data:/var/opt/sourcegraph sourcegraph/server:3.42.0
on docker with WSL2 ubuntu on windows powershell
PS C:\Windows\System32> docker run --publish 7080:7080 --publish 127.0.0.1:3370:3370 --rm --volume ~/.sourcegraph/config:/etc/sourcegraph --volume ~/.sourcegraph/data:/var/opt/sourcegraph sourcegraph/server:3.42.0
Unable to find image 'sourcegraph/server:3.42.0' locally
3.42.0: Pulling from sourcegraph/server
8663204ce13b: Pull complete
cb98d35c0163: Pull complete
4dc399fc4898: Pull complete
1b51d4234293: Pull complete
72d07bb1c9ad: Pull complete
e8c09e126f47: Pull complete
730af42ae18d: Pull complete
56370217bf22: Pull complete
22027d603be0: Pull complete
c3ef933428dd: Pull complete
c651671767b8: Pull complete
06308898a162: Pull complete
db705445c48c: Pull complete
8b085e13f88b: Pull complete
ce0f66e71127: Pull complete
61a9e43c32fa: Pull complete
552edc34d57a: Pull complete
91351646ae1c: Pull complete
32c2f73c899e: Pull complete
1e4be0fab197: Pull complete
4eda24a2465a: Pull complete
458ec720b114: Pull complete
1c0d539b583d: Pull complete
cf780e61fa4c: Pull complete
99e6f332414d: Pull complete
10683ba81232: Pull complete
47732cafd371: Pull complete
13dd614f2a9d: Pull complete
8d251ffc918f: Pull complete
Digest: sha256:add79a2d07fd9cc0ee1b1ff7fba953fb026ec7bdf1861648d707666b5901d2e1
Status: Downloaded newer image for sourcegraph/server:3.42.0
✱ Sourcegraph is initializing the internal database... (may take 15-20 seconds)
✱ Finished initializing the internal database.
Starting postgres processes
Starting migrator
15:26:46 postgres | 2022-07-29 15:26:46.385 UTC [50] LOG: starting PostgreSQL 12.10 on x86_64-alpine-linux-musl, compiled by gcc (Alpine 9.3.0) 9.3.0, 64-bit
❗️ An error was returned when detecting the terminal size and capabilities:
GetWinsize: inappropriate ioctl for device
Execution will continue, but please report this, along with your operating
system, terminal, and any other details, to:
https://github.com/sourcegraph/sourcegraph/issues/new
✱ Sourcegraph migrator v3.42.0
t=2022-07-29T15:26:46+0000 lvl=warn msg="Skipping out-of-band migrations check (fresh instance)" version=3.42.0
{"SeverityText":"WARN","Timestamp":1659108406427639784,"InstrumentationScope":"runner","Caller":"runner/run.go:125","Function":"github.com/sourcegraph/sourcegraph/internal/database/migration/runner.(*Runner).runSchema","Body":"Schema not in expected state","Resource":{"service.name":"migrator","service.version":"3.42.0","service.instance.id":"9ca5bbe6808e"},"Attributes":{"schema":"frontend","targetDefinitions":[1646027072,1646306565,1646652951,1646741362,1646848295,1646847163,1647282553,1647849753,1647860082,1648051770,1648115472,1648195639,1648524019,1648628900,1649159359,1649269601,1649441222,1649759318,1649432863,1650456734,1650637472,1651061363,1651077257,1651159431,1652143849,1652175864,1652228814,1652189866,1652707934,1652946496,1652964210,1653334014,1653472246,1653479179,1649253538,1654116265,1654168174,1655226733,1653524883,1654770608,1654848945,1654872407,1654874148,1654874153,1655037388,1655037391,1655067139,1655128668,1655328928,1655412173,1655481894,1655737737,1655763641,1655843069,1655157509,1655105391,1655454264,1656447205,1657106983,1657107627,1657279116,1657279170,1657635365,1658174103,1658225452,1657663493],"appliedVersions":[],"pendingVersions":[],"failedVersions":[]}}
✅ Schema(s) are up-to-date!
❗️ An error was returned when detecting the terminal size and capabilities:
GetWinsize: inappropriate ioctl for device
Execution will continue, but please report this, along with your operating
system, terminal, and any other details, to:
https://github.com/sourcegraph/sourcegraph/issues/new
✱ Sourcegraph migrator v3.42.0
t=2022-07-29T15:26:46+0000 lvl=warn msg="Skipping out-of-band migrations check (fresh instance)" version=3.42.0
{"SeverityText":"WARN","Timestamp":1659108406848950641,"InstrumentationScope":"runner","Caller":"runner/run.go:125","Function":"github.com/sourcegraph/sourcegraph/internal/database/migration/runner.(*Runner).runSchema","Body":"Schema not in expected state","Resource":{"service.name":"migrator","service.version":"3.42.0","service.instance.id":"9ca5bbe6808e"},"Attributes":{"schema":"codeintel","targetDefinitions":[1000000033,1000000034],"appliedVersions":[],"pendingVersions":[],"failedVersions":[]}}
✅ Schema(s) are up-to-date!
Migrated postgres schemas.