Skip to content

Instantly share code, notes, and snippets.

@shakthizen
Last active February 20, 2024 08:45
Show Gist options
  • Save shakthizen/089774b892465e24b6bd7ccd40791b62 to your computer and use it in GitHub Desktop.
Save shakthizen/089774b892465e24b6bd7ccd40791b62 to your computer and use it in GitHub Desktop.
Enable TCP port in Docker Desktop on ubuntu
  1. Add these lines to the config. You can find the setting in Settings->Docker Engine
  "hosts": [
    "unix:///var/run/docker.sock",
    "tcp://0.0.0.0:2375"
  ]

image

  1. Run below command Ref : testcontainers/testcontainers-java#6045 (comment)
sudo ln -s $HOME/.docker/desktop/docker.sock /var/run/docker.sock
  1. Restart the docker engine. Done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment