Coder Social home page Coder Social logo

Comments (4)

pmrt avatar pmrt commented on June 4, 2024 9

Just wanted to note that you don't need to create symbolic links every time you run docker if you're using docker destop. In the last version there's an option for this in Docker Desktop > Settings > Advanced:

Screen Shot 2023-07-20 at 11 59 48

So I'm not sure whether we should consider this a bug or is it just that docker added an extra layer of security. Either way this should be documented.

from dockertest.

Atixx avatar Atixx commented on June 4, 2024 8

A workaround that I've been using is to symlink the expected location to the actual one, which changes from /var/run to ~/.docker/run.

You can do that by running sudo ln -s ~/.docker/run/docker.sock /var/run

If in your case the socket is in a different spot, make sure to change the origin of that link

from dockertest.

tsawler avatar tsawler commented on June 4, 2024

Another option (and it's the one I ultimately went with) was to move over to testcontainers/testcontainers-go.

from dockertest.

YoEight avatar YoEight commented on June 4, 2024

Greetings,

I got the same issue on Linux too (not running on Windows nor Mac). I think the library assuming the current user can run docker rootless is a bug. Using Docker Desktop is the recommended way now even on Linux. It allows the current user to use docker rootless, without compromising security.

The option suggested by @pmrt is not available on Docker Desktop linux unfortunately

Thanks for your time

from dockertest.

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.