Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Example docker-compose.yml not working #5511

Open
1 of 3 tasks
speendo opened this issue Feb 23, 2025 · 0 comments
Open
1 of 3 tasks

[BUG] Example docker-compose.yml not working #5511

speendo opened this issue Feb 23, 2025 · 0 comments
Labels
bug Bug fixes

Comments

@speendo
Copy link

speendo commented Feb 23, 2025

Describe the problem

I tried to run fiftyone in Docker, using the example docker-compose.yml file from https://hub.docker.com/r/voxel51/fiftyone .

After replacing the volume directory (as intended) I tried to start the container which resulted in this error:

$ docker compose up
[+] Running 2/2
 ✔ Network docker_default       Created                                                                                                                             0.3s 
 ✔ Container docker-fiftyone-1  Created                                                                                                                             0.3s 
Attaching to fiftyone-1
fiftyone-1  | python: can't open file '/usr/local/lib/python/dist-packages/fiftyone/server/main.py': [Errno 2] No such file or directory
fiftyone-1 exited with code 2

I then removed the line

command: ['python', '/usr/local/lib/python/dist-packages/fiftyone/server/main.py', '--port', '5151']

from the docker compose file and started the container again. This way the container started.

Code to reproduce issue

  1. Create a file docker-compose.yml
  2. Copy the example content from https://hub.docker.com/r/voxel51/fiftyone (see below)
services:
  fiftyone:
    command: ['python', '/usr/local/lib/python/dist-packages/fiftyone/server/main.py', '--port', '5151']
    environment:
      FIFTYONE_DEFAULT_APP_ADDRESS: 0.0.0.0
    image: voxel51/fiftyone:latest
    ports:
      - 5151:5151
    volumes:
      - type: bind
        source: some-local-directory
        target: /fiftyone
  1. Replace some-local-directory with something reasonable
  2. Run the container with docker compose up
  3. Find the error message mentioned above

System information

  • OS Platform and Distribution: Debian Testing (13)
  • Python version (python --version): Docker - irrelevant
  • FiftyOne version (fiftyone --version): Docker - irrelevant
  • FiftyOne installed from (pip or source): Docker (voxel51/fiftyone:latest)

Willingness to contribute

The FiftyOne Community encourages bug fix contributions. Would you or another
member of your organization be willing to contribute a fix for this bug to the
FiftyOne codebase?

  • Yes. I can contribute a fix for this bug independently
  • Yes. I would be willing to contribute a fix for this bug with guidance
    from the FiftyOne community
  • No. I cannot contribute a bug fix at this time

Fix

Remove the line

command: ['python', '/usr/local/lib/python/dist-packages/fiftyone/server/main.py', '--port', '5151']

from the docker-compose example file.

@speendo speendo added the bug Bug fixes label Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug fixes
Projects
None yet
Development

No branches or pull requests

1 participant