Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
compose: don't use slashes for the sed command on the registry's entr…
Browse files Browse the repository at this point in the history
…ypoint

The DOCKER_HOST might be set to something that starts with "tcp://". This is
the case for example when setting up a docker host through Docker machine.

Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
  • Loading branch information
mssola committed Dec 16, 2015
1 parent 02605b3 commit 0b5c502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/registry/entry.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

if [ ! -e /registry/config.yml ]; then
sed -e "s/DOCKER_HOST/${DOCKER_HOST}/g" /registry/config.yml.template > /registry/config.yml
sed -e "s|DOCKER_HOST|${DOCKER_HOST}|g" /registry/config.yml.template > /registry/config.yml
fi

registry /registry/config.yml

0 comments on commit 0b5c502

Please sign in to comment.