mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-11-10 05:07:26 +01:00
dockcross: Change name of container from "dockcross" to "dockcross_RAND"
where RAND is a 7 characters long randomly generated alphanumeric string. Note that container name can NOT start with "_", only [a-zA-Z0-9][a-zA-Z0-9_.-] are allowed See #50
This commit is contained in:
parent
7a8f4fab0e
commit
904cb09858
@ -180,7 +180,7 @@ fi
|
||||
# Now, finally, run the command in a container
|
||||
#
|
||||
tty -s && TTY_ARGS=-ti || TTY_ARGS=
|
||||
CONTAINER_NAME=dockcross
|
||||
CONTAINER_NAME=dockcross_$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 7 | head -n 1)
|
||||
docker run $TTY_ARGS --name $CONTAINER_NAME \
|
||||
-v $PWD:/work \
|
||||
$USER_IDS \
|
||||
|
Loading…
Reference in New Issue
Block a user