Borjis131 / docker-open5gs

Open5GS 5G Core Docker images and Docker compose deployments
GNU Affero General Public License v3.0
20 stars 11 forks source link

Unable to run open5gs-base. #5

Closed r00tb33 closed 9 months ago

r00tb33 commented 9 months ago

Hi @Borjis131,

I've cloned the repo, build the docker images but, when I try to boot them up I am stuck at the following error...

$ docker-compose -f compose-files/basic/docker-compose.yaml --env-file=.env up
WARNING: The MONGODB_VERSION variable is not set. Defaulting to a blank string.
WARNING: The OPEN5GS_VERSION variable is not set. Defaulting to a blank string.
WARNING: The UBUNTU_VERSION variable is not set. Defaulting to a blank string.
WARNING: The DOCKER_HOST_IP variable is not set. Defaulting to a blank string.
WARNING: Some services (amf, ausf, bsf, nrf, nssf, pcf, smf, udm, udr, upf) use the 'configs' key, which will be ignored. Compose does not support 'configs' configuration - use `docker stack deploy` to deploy to a swarm.
ERROR: invalid reference format

Any suggestions as to what am I doing wrong?

Thanks!!

Borjis131 commented 9 months ago

Hi @r00tb33,

Assuming you are executing everything from the root folder of the repository where the .env is placed, that command seems ok to me.

The configs key warning though, could be related to your docker compose version. Can you tell me your docker compose version? that way I can try to upgrade mine and check the warnings/errors.

Thanks a lot!

r00tb33 commented 9 months ago

Fixed it by utilizing full path to .env

docker-compose -f compose-files/basic/docker-compose.yaml --env-file=/home/usr/docker-open5gs/.env up

Thanks!!