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

Help installing container on TrueNAS Scale (containerd) #644

Closed
benedlore opened this issue Nov 15, 2023 · 6 comments
Closed

Help installing container on TrueNAS Scale (containerd) #644

benedlore opened this issue Nov 15, 2023 · 6 comments
Labels
enhancement New feature or request

Comments

@benedlore
Copy link

benedlore commented Nov 15, 2023

Please describe.
I was hoping to try the docker container version on TrueNAS Scale, which is a Debian-based linux OS that using containerd for containers.

It seems like it should be possible, but I am not sure how to properly set up the settings within TrueNAS to be able to interact with the container. The below image serves to show all of the available settings in TrueNAS. I also was able to pull and run the container using these settings, but I am at a loss as to how to actually access it. Hoping some kind soul might be able to look through these and tell me exactly how I might access it over LAN.

Once it is running, I cannot connect to it either on the truenas machine or from another machine on the same network.

(imgur link backup here: https://i.imgur.com/tdGKFjc.png)
image

@benedlore benedlore added the enhancement New feature or request label Nov 15, 2023
@pandu-k
Copy link
Collaborator

pandu-k commented Nov 16, 2023

Thanks @benedlore - I haven't tried running Marqo in this environment. I have a few questions:

  1. can you access the Marqo logs?
  2. is the machine arm64 or amd64 based?
  3. Marqo requires the --privileged flag to run certain features. Is that possible in this environment? We may be able to run Marqo without this flag, but it may require configuration changes

@benedlore
Copy link
Author

benedlore commented Nov 16, 2023

Hi @pandu-k , thank you for responding.

They did have some options that I think should enable some of the args in the docker command:
image

I cannot see the marqo logs the same way as I can when running in Docker, but it does show some Kubernetes logs, although not sure they are very helpful. Mostly just saying the container is started and running type of thing:

 2023-11-15 16:43:34
Started container ix-chart
2023-11-15 16:43:33
Created container ix-chart
2023-11-15 16:43:31
Scaled up replica set marqo-ix-chart-6cfb8df7bd to 1 from 0
2023-11-15 16:43:31
Created pod: marqo-ix-chart-6cfb8df7bd-sslwp
2023-11-15 16:43:31
Successfully assigned ix-marqo/marqo-ix-chart-6cfb8df7bd-sslwp to ix-truenas
2023-11-15 16:43:31
Add eth0 [172.16.0.54/16] from ix-net
2023-11-15 16:43:31
Container image "marqoai/marqo:latest" already present on machine

Once it is reported as started and running, I have tried both on the TrueNAS machine and on a different device on same LAN to send some requests at it to see if it responds, but I always just get a "target actively refused connection"

@benedlore
Copy link
Author

Oh also, machine this is running on is amd64, an AMD Epyc Rome

@benedlore
Copy link
Author

I had my ports set up wrong, it works fine when properly setting container port to 8882: https://www.truenas.com/community/threads/help-with-a-docker-container-in-cobia-marqo.114234/#post-791323

@benedlore
Copy link
Author

@pandu-k Although it now works, I notice data is not persistent once it is turned off and back on. It has access to persistent storage space - do you know if there is a specific setting that might help with that?

@benedlore
Copy link
Author

I added the same env vars that the original container appeared to use, and then changed the mount path to "/var/lib/docker" and it appears to be saving the data persistently now!
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants