Ask / Submit
5

Docker container support in SailfishOS? [answered]

asked 2016-09-10 13:12:00 +0300

gabs5807 gravatar image

updated 2016-09-10 13:12:54 +0300

What about docker container support in SailfishOS? I think there are various existing container images available which will also work on SailfishOS.

This also allow some low level security mechanism, for e.g. android VM, ..

It's easy to set up a development environment on a container and if it's set up you can reuse it many times (the maruOS developer use this way to get an equal development environment). And i think there are many more possibilities to use containers.

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by gabs5807
close date 2018-05-01 14:08:49.913217

2 Answers

Sort by » oldest newest most voted
2

answered 2016-09-10 13:30:30 +0300

cy8aer gravatar image

There is a container-discussion in last developer meeting (but flatpack for application isolating in combination with selinux).

http://merproject.org/meetings/mer-meeting/2016/mer-meeting.2016-09-05-09.00.log.html

Docker should work if you

  • have Go for SailfishOS
  • get the newest docker (0.12.x) compiled and running. IMHO there is no lacking kernel stuff which might show stop.

But:

  • docker stuff is server stuff - no graphical interface stuff. There are some solutions for X but not for wayland which is used on SailFishOS
  • I had not so good experiences with 0.12.x on amd64 (network stack, iptables problems) so that I swapped back to 0.11.x there.
edit flag offensive delete publish link more

Comments

@cy8aer: thank you, good to hear that. is any timeline about this feature? i think if the server stuff is working, the graphical part will come - sooner or later ;-).

gabs5807 ( 2016-09-10 13:44:06 +0300 )edit

@gabs5807 I am using it only on amd64 servers so I am not intending to do this with SailfishOS. The flatpack/selinux stuff seems to be examined by now according to the meeting)

cy8aer ( 2016-09-10 14:03:12 +0300 )edit

Flatpack containers should be a better solution because of the graphical stuff anyways in this special purpose.

cy8aer ( 2016-09-10 14:05:32 +0300 )edit
1

answered 2016-09-11 17:35:15 +0300

mick3 gravatar image

updated 2016-09-11 17:36:09 +0300

Have you checked the existing container support in SFOS?

https://together.jolla.com/question/70499/request-fulfilled-enable-container-namespace-features-in-jolla-kernel/

I think this could be a way to go for setting up a development environment. An even simpler one would be to create a chroot environment:

https://together.jolla.com/question/26605/howto-install-a-chroot-for-building-apps/ (not sure if this is still recent enough to work)

So I don't think you really need to port Docker to SFOS for using containers or you may just start with chroot. I'm also not sure that existing container images will work out of the box with Docker on SFOS. For which ARM architecture were those images built?

edit flag offensive delete publish link more

Question tools

Follow
2 followers

Stats

Asked: 2016-09-10 13:12:00 +0300

Seen: 813 times

Last updated: Sep 11 '16