d-utils

simple utils to use docker images without docker
git clone https://git.ce9e.org/d-utils.git

commit
e4c3c6660b32c5e135657b707e4bb3ad5aa9268d
parent
8e8e6ba9a7ef41e7d4da62e0fac039fd081d3455
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-07-31 12:00
fix resolv.conf with read-only rootfs

Diffstat

M d-run 6 +++---

1 files changed, 3 insertions, 3 deletions


diff --git a/d-run b/d-run

@@ -50,15 +50,15 @@ def build_cmd(dir, config):
   50    50 		for volume in config['Volumes']:
   51    51 			cmd += make_volume(volume, dir)
   52    52 
   53    -1 	if not config.get('rw'):
   54    -1 		cmd += ['--remount-ro', '/']
   55    -1 
   56    53 	if config.get('net'):
   57    54 		cmd += [
   58    55 			'--ro-bind', '/etc/resolv.conf', '/etc/resolv.conf',
   59    56 			'--share-net',
   60    57 		]
   61    58 
   -1    59 	if not config.get('rw'):
   -1    60 		cmd += ['--remount-ro', '/']
   -1    61 
   62    62 	if config.get('fakeroot'):
   63    63 		cmd += [
   64    64 			'--uid', '0',