Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

root filesystem and chroot example not working #10

Open
saikovvuri opened this issue Apr 7, 2020 · 2 comments
Open

root filesystem and chroot example not working #10

saikovvuri opened this issue Apr 7, 2020 · 2 comments

Comments

@saikovvuri
Copy link

Hello Liz,
Fantastic session . howeever when i am trying to following the instructions for setting rootfs using chroot, not able to make it work

root@simpleLinuxVM:/# go run main.go run /bin/bash
Running [/bin/bash]
Running [/bin/bash]
panic: fork/exec /bin/bash: no such file or directory

Appreciate your advice.

@vincentchemouny
Copy link

vincentchemouny commented Nov 13, 2020

Hi thanks for your talks !

I've got the same problem, even though, I tried the same code of multiple of your differents talks on "building container from scratch". Finally I tried the code of your repo and I still have this issue :

panic: fork/exec /bin/bash: no such file or directory

My filesystem that I use as a folder is supposed to work, I tried the bash binary which is in it and it works from the host.
(For information I took this from this repo : https://github.com/mugli/container-from-scratch-in-go)

Thank you in advance for the help

@cxsu
Copy link

cxsu commented Jan 14, 2021

@saikovvuri @vincentchemouny

docker run -d --rm --name ubuntufs ubuntu:20.04 sleep 1000
docker export ubuntufs -o ubuntufs.tar
docker stop ubuntufs
mkdir -p /home/liz/ubuntufs
tar xf ubuntufs.tar -C /home/liz/ubuntufs/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants