avatarify-python icon indicating copy to clipboard operation
avatarify-python copied to clipboard

Port conflict in client docker setup

Open jjtt opened this issue 4 years ago • 4 comments

https://github.com/alievk/avatarify/blob/e3302b94059f0dfb6b32b82ff2c1e3ca3834cbb3/run.sh#L112

Using 5557 twice

jjtt avatar Nov 22 '20 18:11 jjtt

Do you mean you get a conflict when running client and server on the same machine? In that case you should add the --is-local-client flag (as stated in the wiki).

mintmaker avatar Dec 06 '20 13:12 mintmaker

No, I mean that the script tries to use the same port 5557 twice : -p 5557:5554 -p 5557:5558

jjtt avatar Dec 06 '20 13:12 jjtt

The first one can be safely deleted as it is not used anywhere. Not sure if the second one is right though. I will look into this as soon as I find the time.

mintmaker avatar Dec 08 '20 18:12 mintmaker

Both can be deleted as the ports are already exposed in the Dockerfile. @alievk If you like you can just remove the whole if statement in the run.sh there. Otherwise I can make a pr. Also in #296 a mistake in the readme was reported (you would just need to replace a 'hardly' with 'highly'). Might be easier for you to do both things directly than with a pr.

Edit: only the corresponding elif not the if there itself. So from 109 it should be:

 if [[ $DOCKER_IS_LOCAL_CLIENT == 1 ]]; then
        DOCKER_ARGS="$DOCKER_ARGS --network=host"
    fi

mintmaker avatar Dec 13 '20 10:12 mintmaker