Share the exact docker run command that you issued (not copied from the blog post). The command indicates that a folder was inadvertently created and naturally sync gateway cannot launch with a folder path. Typically means that there was an extraneous “/” at the end of the path
Check that the sync-gateway.config file is the PATH that the docker command is issued from. Double check that it’s not a folder.
now this error,
2021-01-13T21:36:30.028Z [ERR] Error reading config file /etc/sync_gateway/sync_gateway.json: read /etc/sync_gateway/sync_gateway.json: is a directory – rest.ServerMain() at config.go:1091
yes, you did point that out then I realized that I just added the “.json” instead of the entire file name.
What “psd” is this? I have tried the admin password of “password” and i get this:
docker run -p 4984-4985:4984-4985 --network cbnetwork --name sync-gateway -d -v password/sync-gateway-config.json:/etc/sync_gateway/sync_gateway.json couchbase/sync-gateway -adminInterface :4985 /etc/sync_gateway/sync_gateway.json
docker: Error response from daemon: create password/sync-gateway-config.json: “password/sync-gateway-config.json” includes invalid characters for a local volume name, only “[a-zA-Z0-9][a-zA-Z0-9_.-]” are allowed. If you intended to pass a host directory, use absolute path.
See ‘docker run --help’.