News for hackers. Stuff that matters.
Re:`COPY –chmod` reduced the size of my container image by 35% by heavyset_go on Saturday March 26, 2022 @03:41AM (#30810035)
Are people actually using Snap in containers? It feels like a convenience feature for desktop users.
Re:`COPY –chmod` reduced the size of my container image by 35% by ZiiS on Saturday March 26, 2022 @04:15AM (#30810163)
They don't give you the choice. Applications are only avaliable as either a snap or an deb. With many you might want to containerise (ie Chromium for CI) being snaps. I dont belive they can work in unpriviledged docker containers.
Re:`COPY –chmod` reduced the size of my container image by 35% by shaicoleman on Saturday March 26, 2022 @09:42AM (#30811705)
There are Chromium debs for Ubuntu 20.04 available from the Linux Mint repo.

To get it Chromium under docker, I'm using the following params:

  --headless --no-sandbox --disable-gpu --window-size=1920,1080 --disable-dev-shm-usage
Re:`COPY –chmod` reduced the size of my container image by 35% by yunohn on Saturday March 26, 2022 @04:56AM (#30810324)
Which apps are you using via Docker, that are only available as a snap?
Re:`COPY –chmod` reduced the size of my container image by 35% by heavyset_go on Saturday March 26, 2022 @04:05PM (#30814902)
I understand that, it's just my impression with using Snap that it's used to ship desktop applications in a consistent way.
Re:`COPY –chmod` reduced the size of my container image by 35% by bigpod on Saturday March 26, 2022 @08:35AM (#30811316)
you cannot use snap inside a docker or any other OCI container, first of all snap is a containerised package as well so it doesnt make much sense but what is more important it requires SystemD and as far as i know if systemd isnt PID 1 snap deamon wont run and its CLI will output it cant run.