Docker for Mac: Portainer Stack does not work #9284
Replies: 5 comments
-
|
Installing Portainer 2.17.0 using the Docker for Mac extension seems to work though. |
Beta Was this translation helpful? Give feedback.
-
|
I wanted to follow up on this request. You are wanting to install Docker Swarm on Mac? And then install Portainer on the single node Swarm cluster. Why do you want Swarm instead of Standalone here? Thanks! |
Beta Was this translation helpful? Give feedback.
-
|
Yes, I am always installing Docker for Mac and then activate Docker swarm on it. Then I use a mixture of normal containers and swarm services depending on the use case. I try hard to mimic production environments during development and thus I usually deploy portainer as swarm services because I do so as well in production. Also I found it easier to update portainer if it is running as swarm service. For this I usually modify your provided docker swarm compose file and replace the fixed version with This has always worked for me until recently. |
Beta Was this translation helpful? Give feedback.
-
|
@jamescarppe Any reason why this has been moved to discussion? Technically it is a regression compared to earlier versions of portainer (or possibly earlier versions of Docker, in case Docker caused the issue) |
Beta Was this translation helpful? Give feedback.
-
|
We're moving to using discussions for questions and feature requests going forward and keeping issues for bug reports exclusively. This lets us gauge community feedback easier and facilitates wider discussion on ideas and implementation. In this case, since the issue was erroneously flagged as both Edit: Created a new issue based on this discussion: #9945 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug description
Using Docker Desktop for Mac 4.16.2 (95914) on MacOS Ventura 13.1 the provided docker compose file from your documentation does not work correctly. Not sure if it is relevant but Docker for Mac is configured to use the MacOS Virtualization Framework so that VirtioFS can be used as file sharing implementation for containers (Settings -> General).
I can not access any of the published ports (8000, 9000, 9443) and after some time portainer shuts down.
Expected behavior
Portainer should start up correctly and be accessible via browser
Portainer Logs (fresh install with empty volume)
Most notably is the line
I have inspected the LinuxKit VM that Docker for Mac uses internally using
docker run -it --rm --privileged --pid=host justincormack/nsenter1. It seems like/var/run/docker.sockdoes indeed not exist inside that VM.Steps to reproduce the issue:
4.16.2 (95914)(or newer) on MacOS Ventura 13.1 (or newer)Generaland make sureVirtioFSis selected (which should automatically selectuse Virtualization framework).docker swarm initcurl -L https://downloads.portainer.io/ce2-17/portainer-agent-stack.yml -o portainer-agent-stack.ymldocker stack deploy -c portainer-agent-stack.yml portainerTechnical details:
docker run -p 9443:9443 portainer/portainer): see aboveBeta Was this translation helpful? Give feedback.
All reactions