-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
.NetCore SDK 3.1 Docker not support ENV LC_ALL and LANG (2.1 is support) #5225
Comments
@MichaelSimons any chance you could help with this issue? |
@uopeydel , If I am following correctly, you have encountered two different issues. It would be helpful if you logged each problem as a separate issue. This makes each issue more clear. It also helps get the right people involved to diagnose and respond to each issue. Step #1 - I would suggest debugging into this further. What SQL query is being executed? Does the query match the data schema? Something appears mis-configured in the DB versus what is in the code. Step #2 - As noted this happens outside of Docker. @carlossanlop, please loop in the owners of |
1 The query when have no ENV config is this one > 2 @MichaelSimons Actually, I don't want to use it in docker container. I read many article no one use this way , I use pipeline create new image and deploy new one. But some of my customer require it because of they said they don't want to generate new docker image, image it to big size and they think if they change just one of parameter they don't want to re-generate new docker image. Then they decide to let me install git inside docker and replace new code and let it build again inside docker container (make it like VM ... ). They don't care if it rebuild and have downtime 15 - 20 second while rebuild. They use trigger with |
Any idea? @carlossanlop @MichaelSimons |
Issue Title
Those environment variables can't use in docker.
From base image mcr.microsoft.com/dotnet/core/sdk:3.1 previous I use 2.1 it work fine.
Step 1
https://github.com/uopeydel/testdb
use this project step test is run command
docker build --pull --rm -f "dockerfile" -t testdb:latest "."
docker run -d -p 1144:443/tcp -p 1188:80/tcp testdb:latest
and go to url
http://localhost:1188/api/Values/GetData
It will show you error message
Then comment line below in "dockerfile"
then try to build docker and run again it will be work fine.
** please change ConnectionStrings before test
Step 2
I tried to create new docker file pushed today name "dockerfile.v2"
You can run it by command
docker build --pull --rm -f "dockerfile.v2" -t testdb:latest "."
If I have 2 line of this code
And run this command
docker run -p 1144:443/tcp -p 1188:80/tcp testdb:latest
It will show this error message
If I remove this 2 line
It will work fine.
The text was updated successfully, but these errors were encountered: