BetterVoice / freeswitch-container

This project can be used to deploy a FreeSWITCH server inside a Docker container. The container currently uses the latest stable release version 1.6.x. An effort was made to build many modules so the container can be generic enough to serve many purposes.
https://www.bettervoice.com
238 stars 128 forks source link

docker: unauthorized: authentication required error when running the docker run command #16

Open Previesam opened 1 year ago

Previesam commented 1 year ago

I am not sure what I am doing wrong see system information below.

System: Ubuntu 22.04. 8gb ram, Intel core i5. Docker version 20.10.21, build baeda1f

Command;

CID=$(sudo docker run --privileged --name freeswitch -p 5060:5060/tcp -p 5060:5060/udp -p 5080:5080/tcp -p 5080:5080/udp -p 8021:8021/tcp -p 7443:7443/tcp -p 60535-65535:60535-65535/udp -v /home/ubuntu/freeswitch/conf:/usr/local/freeswitch/conf bettervoice/freeswitch-container:1.6.6);

Result:

docker: unauthorized: authentication required.
See 'docker run --help'.]

Thank you in anticipation of your help.

darless commented 1 year ago

That error looks associated with general docker authentication, meaning not with running the container, but pulling down the container. Try pulling down the image from dockerhub manually and see if you have the same error, if you do then it's an auth issue in ~/.docker/config.json, for dockerhub you generally don't need any authentication as it's publicly readable.

docker pull bettervoice/freeswitch-container:1.6.6
Previesam commented 1 year ago

Noted thank you for the swift response.

On Fri, 23 Jun 2023, 15:13 Darless, @.***> wrote:

That error looks associated with general docker authentication, meaning not with running the container, but pulling down the container. Try pulling down the image from dockerhub manually and see if you have the same error, if you do then it's an auth issue in ~/.docker/config.json, for dockerhub you generally don't need any authentication as it's publicly readable.

docker pull bettervoice/freeswitch-container:1.6.6

— Reply to this email directly, view it on GitHub https://github.com/BetterVoice/freeswitch-container/issues/16#issuecomment-1604343696, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK2DKFGZV6732HILBIZPGSTXMWP7FANCNFSM6AAAAAAZQJNYEM . You are receiving this because you authored the thread.Message ID: @.***>

darless commented 1 year ago

If there is nothing further for this, please close the GitHub issue.

Previesam commented 1 year ago

Okay this is not really related though. So, I am getting the error bellow.

 * Starting SNMP services:
freeswitch is not configured so not starting.
Please review /usr/local/doc/freeswitch/README.Debian

Where can I find the configuration files in this install? And which configuration are actually required.