d-utils

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

commit
8221f76898fe70da2b9dd978de4cc5a3dae8465b
parent
92d2f94fd041bd8bbf2e91608df908fb0c464201
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-10-20 21:57
d-run: add --debug option

Diffstat

M d-run 3 +++

1 files changed, 3 insertions, 0 deletions


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

@@ -106,6 +106,7 @@ def parse_args():
  106   106 	parser.add_argument('-u', '--user')
  107   107 	parser.add_argument('-n', '--net', action='store_true')
  108   108 	parser.add_argument('-w', '--rw', action='store_true')
   -1   109 	parser.add_argument('--debug', action='store_true')
  109   110 	parser.add_argument('cmd', nargs='...')
  110   111 	return parser.parse_args()
  111   112 
@@ -131,4 +132,6 @@ if __name__ == '__main__':
  131   132 			config['Volumes'][volume] = {}
  132   133 
  133   134 	cmd = build_cmd(args.dir, config)
   -1   135 	if args.debug:
   -1   136 		print(' '.join(cmd))
  134   137 	os.execvp(cmd[0], cmd)