lizrice / containers-from-scratch

Writing a container in a few lines of Go code, as seen at DockerCon 2017 and on O'Reilly Safari

Home Page:http://lizrice.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

must(syscall.Chroot("/rootfs")) gives not such file or directory

ishankhare07 opened this issue · comments

I'm getting the above error although i can verify that rootfs exists in the provided path

# ls /rootfs/
bin  dev  etc  home  lib  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var

Also I'd like to mention that I'm using alpine's Mini root filesystem for rootfs

My bad, I was using a linux container to run my code on mac and there was a mismatch with my mount paths.