-
I've got a Docker Swarm which hosts a number of MS DevOps agents. Some of those agents are configured to have access to the Docker pipeline, performing Docker In Docker operations. I'd like to make use of Sysbox to isolate those agents, so that they don't "mess up" the host by accident (by leaving containers running or leaving images / cache). Sysbox seems perfect for the job, and I was able to install it and confirm that these agents work in isolation as expected - but to do this I had to switch the default Docker runtime to Sysbox (I can't see a way to customize the Except... I also use Portainer to handle the swarm, and that includes running the Portainer Agent on each swarm node. And here it seems the Portainer agent stops working when it's running from inside Sysbox. It makes sense, really - it's now isolated; it expects to use the shared host Except I'm in this weird situation where on one Docker host I'd like to have both containers running with and without Sysbox. Is there some way to perhaps get Sysbox to share the docker pipeline with a specific container via config? I mean, changing the runtime seems like the most straightforward approach, but it's not supported AFAIK... Or has anyone managed to get a Portainer Agent working alongside Sysbox? EDIT: I suppose this might be related to #404? I'm not sure if there's a way around this however, and I cannot find anything more recent. The compose definition for the agent is as follows:
So it's using a "standard" mechanism for mounting the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hi @Szaamaan, thanks for filing the issue and apologies for the belated reply.
I think ideally you would be able to select the runtime for each service in the swarm cluster, so that you could run some of them with the default
Mmm ... that should have worked; even though Sysbox allows you to run "true" Docker-in-Docker using unprivileged containers, you can also still mount the host Docker socket into a Sysbox container if you wish. For example this worked for me:
And then add the agent to the Portainer via the UI at |
Beta Was this translation helpful? Give feedback.
-
Sounds good.
Yes, but that shouldn't make a difference; the fact that I was able to run both Portainer and the agent in Sysbox containers means they will run fine whether on the same host or not.
I doubt it, since Sysbox is pretty much agnostic to the container networking config. |
Beta Was this translation helpful? Give feedback.
-
Closing discussion now. |
Beta Was this translation helpful? Give feedback.
Sounds good.
Yes, but that shouldn't make a difference; the fact that I was able to run both Portainer and the agent in Sysbox containers means they will run fine whether on the same host or not.
I doubt it, since Sysbox is pretty much agnostic to the container networking config.