Click here to Skip to main content
15,888,968 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone,

When computer start or restart, Docker Engine also start but no the container (CodeProject/ai-server:gpu) with must be started manually.

In the event of absence, this quickly leads to a saturation of alarm messages from programs using AI(where there is no more AI), which ends up blocking the computer.

What I have tried:

I tried therefore to run docker with --restart=always in PowerShell:
C:\windows\system32> docker run --restart=always codeproject/ai-server:gpu 
                           or
C:\windows\system32> docker run --restart=always codeproject/ai-server:gpu  32168:32168
                           or
C:\windows\system32> docker run --restart=always codeproject/ai-server:gpu  – --add-host 32168:32168

but Docker build every time a new container whithout ports but with, every time the same warning:
Warni Overriding address(es) 'http://+:32168, http://+:5000'. Binding to endpoints defined via IConfiguration and/or UseKestrel() instead.


What does this warning means? Where is my error?

Thank you in advance for your help.

Windows 11 pro last version
Docker Desktop last version (V4.28.0)
WSL2 based engine (WSL2-Kernel), virtualisation, …
CUDA 11.7 win 11 64bits
Subsystem for LINUX
Posted
Updated 9-Apr-24 4:16am
v2

1 solution

Rather than trying to force this in, why don't you just set the aspnet configuration as a docker environment variable:
ENV ASPNETCORE_URLS=http://+:32168
This is picked up by the configuration, so it shouldn't be raising warnings.

Also, for CodeProject.AI questions, you should really use CodeProject.AI Discussions[^].
 
Share this answer
 
Comments
Vincent N. CR 13-Apr-24 19:15pm    
Hi,
Thanks for trying to help me.
But what have I to do with this line

"ENV ASPNETCOR_URLS=http://+:32168"

Have I to add this in my config.json file?
Pete O'Hanlon 14-Apr-24 6:11am    
This is an environment variable. If you are using docker, it should go in as an entry in your docker-compose yaml file.
Vincent N. CR 14-Apr-24 16:02pm    
Please can you tell me how to use this environment variable?

Note: I'am using docker engine and no docker.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900