GithubHelp home page GithubHelp logo

Comments (2)

ntodorov avatar ntodorov commented on June 2, 2024

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?

from yuniql.

ntodorov avatar ntodorov commented on June 2, 2024

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.

from yuniql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.