Trying to start a local instance on Windows #1114
Description
Using Docker Toolbox for windows but ran into the following error 👍
$ docker run --publish 7080:7080 --rm --volume ~/.sourcegraph/config:/etc/s
ourcegraph --volume ~/.sourcegraph/data:/var/opt/sourcegraph --volume /var/
run/docker.sock:/var/run/docker.sock sourcegraph/server:2.13.5
Sourcegraph is initializing the internal database... (may take 15-20 seconds)
Setting up postgres failed:
$ mkdir -p /var/opt/sourcegraph/postgresql
$ chown postgres /var/opt/sourcegraph/postgresql
$ su-exec postgres initdb -D /var/opt/sourcegraph/postgresql --nosync
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
The database cluster will be initialized with locale "en_US.utf8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".
Data page checksums are disabled.
fixing permissions on existing directory /var/opt/sourcegraph/postgresql ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting dynamic shared memory implementation ... posix
creating configuration files ... ok
running bootstrap script ... LOG: could not link file "pg_xlog/xlogtemp.18" to
"pg_xlog/000000010000000000000001": Operation not permitted
FATAL: could not open file "pg_xlog/000000010000000000000001": No such file or
directory
child process exited with exit code 1
initdb: removing contents of data directory "/var/opt/sourcegraph/postgresql"
exit status 1