Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 24, 2020. It is now read-only.

Conversation

@steveej
Copy link
Contributor

@steveej steveej commented Dec 2, 2015

TODO:

  • integrate with garbage-collection (as of now, everything just sits in
    /var/lib/rkt/flights)
  • overlay support (otherwise big ACIs take a long time to start)
  • ACI dependency resolution

Djalal Harouni and others added 4 commits December 2, 2015 12:50
This is a first version of "rkt fly" command which executes a single
application image with no constraints or pod.

It will be improved later to support uid shifts, improve the chroot
logic, clean code.

Patch based on the work of Jonathan Boulle <[email protected]>

Signed-off-by: Djalal Harouni <[email protected]>
stat should be run after chroot(), so that it can work also when
the rootfs is a symlink to another directory.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@steveej Unshare works on the thread level here, so the following mount can still happen in host mount namespace.
But here we can use LockOSThread to make the mounting happen in the unshared thread. However since we don't have controls over the creation of goroutines, it can cause new threads to be cloned from this unshared threads. though it doesn't seem to cause a problem here.

But anyway it is unrecommended to use unshare in go :( golang/go#1954

/cc @vcaputo @jonboulle We hit such problems for a million times

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also #913

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I fixed that!

@jonboulle
Copy link
Contributor

Closing in favour of #1833

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants