Launch docker image error

haifisch

Dabbler
Joined
Jun 2, 2022
Messages
19
Hello, I am trying to use the launch docker image feature in Truenas. First I am trying to run the hello-world with all default settings only defining the repository as a test but I am running into the below error. What am I missing? Is there something that needs to be configured besides defaults so that this feature works at all? There are no logs from the container so I am out of ideas. Any help would be much apprechiated.

1689160554909.png
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
The hello-world container is designed to run, display "hello world" and exit... Kubernetes is designed to run containers continuously and ensure they stay running...

Can you see the problem with your choice of container?
 

haifisch

Dabbler
Joined
Jun 2, 2022
Messages
19
The hello-world container is designed to run, display "hello world" and exit... Kubernetes is designed to run containers continuously and ensure they stay running...

Can you see the problem with your choice of container?
The button literally says launch docker image. So I expect a container to be launched. In this case I wanted to see the output "hello world" and then the container stopping. Its not a failed container in my opinion. Do you have a suggestion on what image to test this feature with?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
In this case I wanted to see the output "hello world" and then the container stopping.
Where did you expect to see that happen? The TrueNAS interface doesn't really have an option to display the "output" in any meaningful way other than logs and expects the container not to stop under "normal circumstances".

Anyway, the principle here is "long-running" container images, so the right thing to be trying is any of the many thousands of those available.

if you can't think of one, try nginx. Make sure to specify a port forward for 80 in the container to something like 9080, then visit http://truenas.IP:9080/ once the container is running to "test" it.
 

haifisch

Dabbler
Joined
Jun 2, 2022
Messages
19
Where did you expect to see that happen? The TrueNAS interface doesn't really have an option to display the "output" in any meaningful way other than logs and expects the container not to stop under "normal circumstances".

Anyway, the principle here is "long-running" container images, so the right thing to be trying is any of the many thousands of those available.

if you can't think of one, try nginx. Make sure to specify a port forward for 80 in the container to something like 9080, then visit http://truenas.IP:9080/ once the container is running to "test" it.
My point was that someone like me with some experience with docker but none with kubernetes would think "launch docker image" would literally launch a container with an image that one can can specify. Also there was no output from the hello world container in logs as I said.

Anyway, I learned something today so thats great and thank you for the help. Nginx worked flawlessly other than me using 10080 first and having to figure out why my browser wasnt happy about it haha. Another thing learned.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Also there was no output from the hello world container in logs as I said.
it outputs to stdout, not to a log, so nothing to see.
 

haifisch

Dabbler
Joined
Jun 2, 2022
Messages
19
it outputs to stdout, not to a log, so nothing to see.
Where did you expect to see that happen? The TrueNAS interface doesn't really have an option to display the "output" in any meaningful way other than logs
I am talking about docker container logs yes... I appreachiate your help but your arrogance is not welcome. You dont have to help if you dont want to.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
I see you were able to test the function correctly and I'm happy for you. I have no further comment.
 

morganL

Captain Morgan
Administrator
Moderator
iXsystems
Joined
Mar 10, 2018
Messages
2,694
I am talking about docker container logs yes... I appreachiate your help but your arrogance is not welcome. You dont have to help if you dont want to.

This is not "arrrogance" .. its KNOWLEDGE and EXPERIENCE. If you don't want that, then I'd suggest be careful posting, Please don't insult people who are trying to be helpful.
 
Top