From 461e64c5470b0c1f6e4325c3046b1b6f53b21cc0 Mon Sep 17 00:00:00 2001 From: Adrian Dvergsdal Date: Tue, 28 Oct 2014 18:58:03 +0100 Subject: [PATCH] Update syntax --- README.md | 2 +- run | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1ff6f71..3fc039e 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Usage ----- - Define users as last arguments to `docker run`, one user per argument - (syntax: `user:pass[:e][:[uid][:gid]]`). + (syntax: `user:[pass[:e]][:[uid][:gid]]`). - You must set custom UID for your users if you want them to make changes to your mounted volumes with permissions matching your host filesystem. - Mount volumes in user's home folder. diff --git a/run b/run index 378a452..ffe45f9 100644 --- a/run +++ b/run @@ -1,7 +1,7 @@ #!/bin/bash for users in "$@"; do - # user:pass[:e][:[uid][:gid]] + # user:[pass[:e]][:[uid][:gid]] IFS=':' read -a data <<< "$users" user="${data[0]}" pass="${data[1]}"