How to run a snap command from another snap


#1

I installed docker snap and ufw snap. I would like to run “docker-compose up” and “ufw allow 443” when the system starts.

Based on what I understand, I need to create a snap and make a daemon app inside it. So that it can be started when system starts.

However, the commands (docker-compose and ufw) are not available inside the new created snap.

Is there any way to get commands installed by snap run when system starts?

Thanks in advance.


#2

This is refused by the sandbox system because it would open up a possibility of undeclared dependency from one snap to another. There is currently no interface granting such permission as such permission would surely require the explicit permission of both snap authors.


#3

Thanks for the information.