diff --git a/docker/README.md b/docker/README.md index b9fa537..911d10e 100644 --- a/docker/README.md +++ b/docker/README.md @@ -46,7 +46,7 @@ There are some client libraries for OpenRefine that communicate with the [OpenRe 2) start server - ```docker run --d --name=openrefine-server -v ${workingdir}:/data:z felixlohmeier/openrefine -i 0.0.0.0 -m 4G -d /data``` + ```docker run -d --name=openrefine-server -v ${workingdir}:/data:z felixlohmeier/openrefine -i 0.0.0.0 -m 4G -d /data``` 3) create project (import file) diff --git a/refine.py b/refine.py index 05ae62d..97205f4 100755 --- a/refine.py +++ b/refine.py @@ -513,11 +513,11 @@ def main(): """Main.""" # get environment variables in docker network - docker_host = os.environ.get('OPENREFINE_PORT_3333_TCP_ADDR') + docker_host = os.environ.get('OPENREFINE_SERVER_PORT_3333_TCP_ADDR') if docker_host: os.environ["OPENREFINE_HOST"] = docker_host refine.REFINE_HOST = docker_host - docker_port = os.environ.get('OPENREFINE_PORT_3333_TCP_PORT') + docker_port = os.environ.get('OPENREFINE_SERVER_PORT_3333_TCP_PORT') if docker_port: os.environ["OPENREFINE_HOST"] = docker_port refine.REFINE_PORT = docker_port