nutritious-ram-1142203/01/2023, 7:07 PM
& `sam aws`… I think I found the “solution”, but i dont know if it could be solved natively by Rancher Desktop… Here it is: I installed the Rancher Desktop on MAC (intel), using dockerd as engine… it’s just works fine, but testcontainers and sam aws (sam build --use-container) cannot connect or find the docker environment…. the solution that I found is recreate the symlink
pointing it to
… but everytime I restart the mac, this symlink just recover to the “original” path
should it be working like this or it should keep the symlink pointing to where I configured? Rancher Desktop Versiob: 1.7.0 docker context is pointing to rancher-desktop who has the docker endpoint configured to ~/.rd/docker.sock
(I deleted the linux-desktop 🤔 )
❯ docker context ls NAME DESCRIPTION DOCKER ENDPOINT KUBERNETES ENDPOINT ORCHESTRATOR default Current DOCKER_HOST based configuration unix:///var/run/docker.sock <https://7746C97A9B6D446EDC0E2C7B437EE8D4.gr7.us-east-1.eks.amazonaws.com> (default) swarm rancher-desktop * Rancher Desktop moby context unix:///Users/felipe.campigoto/.rd/docker.sock
fast-garage-6609303/01/2023, 8:00 PM
nutritious-ram-1142203/01/2023, 8:05 PM
fast-garage-6609303/01/2023, 8:09 PM
is gone, and not installed in
directory if you see anything in there from docker...
nutritious-ram-1142203/01/2023, 8:12 PM
fast-garage-6609303/01/2023, 8:14 PM
is trying to be helpful and changes things for you?
white-xylophone-996103/01/2023, 8:15 PM
and ensure not pointing to Docker.app. After starting rancher, try
ls -ld /usr/local/bin/docker*
and if that doesn't work,
and restart rancher.
sudo rm /var/run/docker.sock
nutritious-ram-1142203/01/2023, 8:16 PM
is just a tool for execute in
fast-garage-6609303/01/2023, 8:16 PM
nutritious-ram-1142203/01/2023, 8:17 PM
fast-garage-6609303/01/2023, 8:18 PM
and not use the versions provided by Rancher Desktop ?
white-xylophone-996103/01/2023, 8:19 PM
fast-garage-6609303/01/2023, 8:21 PM
binaries in Rancher Desktop are from the upstream project; only the Windows versions has a small patch applied to it. So yes, the versions from
should work perfectly fine; I was just wondering why you prefer them, as it seems like an extra step.
white-xylophone-996103/01/2023, 8:23 PM
fast-garage-6609303/01/2023, 8:23 PM
nutritious-ram-1142203/01/2023, 8:24 PM
and download the .dmg on rancher desktop site and installed by .dmg now I can configure
on dashboard preferences and it just works fine 🙂
white-xylophone-996103/02/2023, 2:55 PM
nutritious-ram-1142203/02/2023, 4:44 PM
the Rancher made the symlink to
where the testcontainer and sam cli get the docker env
every startup of SO?
white-xylophone-996103/02/2023, 5:12 PM
nutritious-ram-1142203/02/2023, 5:13 PM
sudo ln -sf /var/run/docker.sock ~/.rd/docker.sock
fast-garage-6609303/02/2023, 5:15 PM
and not worry about it.
docker context use rancher-desktop
, then you need the symlink
nutritious-ram-1142203/02/2023, 5:18 PM
and run the tools, none worked since I created the symlink, those tools worked like a charm but good to know about it, thanks again
fast-garage-6609303/02/2023, 5:19 PM
(or whatever your user name is), and see if the tool supports that. It is an older mechanism to specify a different location for the socket, so this might work, even if docker contexts are not supported.
nutritious-ram-1142203/02/2023, 5:19 PM
fast-garage-6609303/02/2023, 5:20 PM
nutritious-ram-1142203/02/2023, 5:21 PM
have this env “*TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE”* but “sam” I dont know if it have any to override it
fast-garage-6609303/02/2023, 5:21 PM
will be deleted on each boot, so you will be prompted for the admin password again every time you reboot the machine
nutritious-ram-1142203/02/2023, 5:23 PM
he annoying thing is thatI’m accepting my destiny with this 🥲 at least will be just when I startup my mac..will be deleted on each boot, so you will be prompted for the admin password again every time you reboot the machine