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

yuniql/yuniql:latest copy failure #303

Open
Jordan466 opened this issue Jul 8, 2023 · 2 comments
Open

yuniql/yuniql:latest copy failure #303

Jordan466 opened this issue Jul 8, 2023 · 2 comments

Comments

@Jordan466
Copy link

The yuniql:latest docker image (windows os) fails to perform the COPY . ./db command
Doesn't occur on the linux build

Screenshot 2023-07-08 193543

@ntodorov
Copy link

I've got the same error and managed to workaround it by passing extra parameter for platform:
docker build --platform=linux/amd64 -t sqlserver-example .

I was following this documentation: https://yuniql.io/docs/migrate-via-docker-container/

Now it failed me when running the migrations with:
docker run --rm sqlserver-example --platform sqlserver -d -a -c "<your-connection-string>"
the error:
docker: Error response from daemon: unable to find user ContainerUser: no matching entries in passwd file.

@Jordan466 can you try and see if you get the same as me?

@ntodorov
Copy link

OK more information - do not use the --platform=linux/amd64 I posted above. Seems that leads to the error i have encountered after that. I bet your docker client is also configured to use WSL so it needs linux yuniql image.

SOLUTION: change the Dockerfile 1 to:

FROM yuniql/yuniql:linux-x64-latest
COPY . ./db  

That solved it for me.

More info: If you look at docker hub, you can see how the latest tag is only linked to the Windows-based image, and not the linux one .. seems error or at least error in the documentation. I hope @rdagumampan fixes the correct place.
See the docker tags: https://hub.docker.com/r/yuniql/yuniql/tags
latest is to windows and you have to dig more down to see linux-x64-latest tag.
I hope this helps.

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

No branches or pull requests

2 participants