Skip to content
Snippets Groups Projects
Commit b16aa533 authored by Felix Häberle's avatar Felix Häberle :speech_balloon:
Browse files

#61 update start script with user because of ssh

parent 0d4571b3
Branches
Tags
1 merge request!1Feature/macos
......@@ -36,7 +36,8 @@ function startContainer {
if [[ -n ${ID} ]]; then
docker start ${COMPOSE_PROJECT_NAME}_l3d
else
start_params=(--hostname ${COMPOSE_PROJECT_NAME}-l3d \
start_params=(--user ${USERID}:${GROUPID} \
--hostname ${COMPOSE_PROJECT_NAME}-l3d \
--group-add ${GROUPIDS// / --group-add } \
--env L3DSHELL=${L3DSHELL} \
--env COMPOSE_PROJECT_NAME=${COMPOSE_PROJECT_NAME} \
......@@ -51,8 +52,7 @@ function startContainer {
--restart unless-stopped \
)
if [[ ${L3DHOSTOS} != Darwin ]]; then
start_params+=( --user ${USERID}:${GROUPID} \
--volume /etc/group:/etc/group:ro \
start_params+=( --volume /etc/group:/etc/group:ro \
--volume /etc/passwd:/etc/passwd:ro \
--volume /etc/shadow:/etc/shadow:ro \
--volume /etc/sudoers:/etc/sudoers:ro \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment