https://github.com/ribugent/gentoo-nfs-chroot
Provides a docker image for chrooting to remote Gentoo installation
https://github.com/ribugent/gentoo-nfs-chroot
chroot docker gentoo nfs
Last synced: 2 months ago
JSON representation
Provides a docker image for chrooting to remote Gentoo installation
- Host: GitHub
- URL: https://github.com/ribugent/gentoo-nfs-chroot
- Owner: ribugent
- License: gpl-3.0
- Created: 2020-07-18T12:59:53.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-18T13:02:46.000Z (almost 6 years ago)
- Last Synced: 2025-05-20T10:45:23.330Z (about 1 year ago)
- Topics: chroot, docker, gentoo, nfs
- Language: Shell
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Gentoo NFS chroot
This small project provides a docker image for chrooting to remote Gentoo installation
## Why?
The reason is simple, I like a lot Gentoo, but one computer I own, is an old Atom 330 and updates takes a loooooong time. Investigating a little bit I found a [post](https://forums.gentoo.org/viewtopic-p-6817608.html) on Gentoo forums, and I decided to package it on a docker image, this will allow me to use on any system with docker.
## Requirements
- Gentoo installation exporting root via nfs
- Docker
- Remote and host cpu's with compatible instruction set
## Configure nfs exports
Install nfs-utils and start nfs server:
```sh
emerge nfs-utils
/etc/init.d/nfs start
```
Edit `/etc/exports` and the adding the following line:
```
/ 192.168.0.0/24(rw,insecure,no_root_squash,sync,no_subtree_check,crossmnt)
```
**NOTE** Replace `192.168.0.0` with your network.
Re-export your nfs shares
```
exportfs -r
```
## Run docker image
Execute:
```sh
docker run --rm -it --cap-add sys_admin --cap-add net_admin ribugent/gentoo-nfs-chroot
```