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]}"