FreeTAKTeam / FreeTAKServer-Docker

Official Docker Image for FreeTAKServer
Eclipse Public License 2.0
42 stars 26 forks source link

Running CLI from within Docker #16

Closed hogmo1311 closed 3 years ago

hogmo1311 commented 3 years ago

Getting an error when attempting to run the CLI from within Docker. The command "docker exec -it fts python3 -m FreeTAKServer.views.CLI" results in an error

Is the Python module included in the Docker Container/Image? image

skadakar commented 3 years ago

That is not supposed to work.

If you want to exec into the docker container you need to go: docker exec -it CONTAINERNAME /bin/bash

I assume you are trying to start up the UI, but the UI starts up by itself, given no errors, you can see the logs here: docker logs --tail 50 -f CONTAINERNAME

If they are full of errors you can exec into the container and navigate to /data/logs/ and dig around.

sgofferj commented 3 years ago

@skadakar I think, you are mixing UI and CLI here. The docs give this specific command to start the CLI. The command does make sense if you want to start a python submodule inside the context of the docker container. I do have the same problem. I try to get into the CLI with that command and I also get the same error. So either the command is wrong in the docs or the module was not built in the container. Please reopen.