You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Request]: Add auto-start functionality on boot and container auto-start. #158
I liked the temporary "solution" @x8x provided above, but wanted something a bit more flexible, so expanded on it.
I wrote a script that starts the container system up, and then iterates over containers that have a label named "restart" with the value "boot".
The plist for launchd can be found here, but needs to be updated with the correct path for your system.
After that, place the plist file in ~/Library/LaunchAgents and either use launchctl to load and enable it (I can't say I fully understand how, so I just => ) or reboot your system.
(however, after a reboot, you can run the script using launchctl start com.apple.container.launch 🤷♂️ )
This is of course far from ideal, and meant as @x8x said, "meanwhile ...". This is why I'm not even thinking of merging it upstream, don't think it makes sense 😊
note: jq is required and must be installed.
known issues: there are some issues with container itself. if you start a running container it'll stop it and throw an error 🤔 this obviously occurs only if you run the script manually
Activity
x8x commentedon Jun 30, 2025
Meanwhile this works:
~/Library/LaunchAgents/user.nginx.plistjglogan commentedon Jul 16, 2025
This should probably be split into separate issues as they are distinct features:
containerautomatically when the system boots.containerautomatically when I log in.jglogan commentedon Jul 16, 2025
@Phfebb OK if I modify the title to just "Add auto-start functionality on boot" since container restart policy is covered by #286?
Phfebb commentedon Jul 24, 2025
ok
goranche commentedon Aug 13, 2025
I liked the temporary "solution" @x8x provided above, but wanted something a bit more flexible, so expanded on it.
I wrote a script that starts the container system up, and then iterates over containers that have a label named "restart" with the value "boot".
The plist for launchd can be found here, but needs to be updated with the correct path for your system.
After that, place the plist file in
~/Library/LaunchAgentsand either uselaunchctlto load and enable it (I can't say I fully understand how, so I just => ) or reboot your system.(however, after a reboot, you can run the script using
launchctl start com.apple.container.launch🤷♂️ )This is of course far from ideal, and meant as @x8x said, "meanwhile ...". This is why I'm not even thinking of merging it upstream, don't think it makes sense 😊
note:
jqis required and must be installed.known issues: there are some issues with container itself. if you start a running container it'll stop it and throw an error 🤔 this obviously occurs only if you run the script manually
tcarlson25 commentedon Jan 25, 2026
Any update on this?
saehejkang commentedon Feb 7, 2026
I will take a look into all three of these issues, as they seem to be highly requested