command: docker
args:
- run
- --detach
- --workdir
- /home/{{ login }}
- --user
- {{ me.userData.uid }}:{{ me.userData.gid }}
- --name
- {{ id }}
- --rm
- --network
- host
- --env
- HOME=/home/{{ login }}
- --env
- USER={{login}}
- --env
- FX_TEMP_DIR={{ tmpDir }}
- --env
- FX_LINK_TOKEN_FILE=/fastx-link-token.json
- --env
- FX_CONFIG_DIR=/etc/fastx
- --env
- FX_VAR_DIR=/var/fastx
- --env
- FX_LOCAL_DIR=/fastx-local
- --env
- FX_SOCKET_FILE=/fastx-socket-file
- --env
- DISPLAY=:101
- --tmpfs
- /tmp/.X11-unix
- --mount
- "type=bind,source={{ tmpDir }},dst={{ tmpDir }}"
- --mount
- "type=bind,source={{ localDir }}/link-tokens/{{ id }}.json,dst=/fastx-link-token.json,ro"
- --mount
- "type=bind,source={{ homedir }},dst=/home/{{ login }}"
- --mount
- "type=bind,source={{ socketFile }},dst=/fastx-socket-file,ro"
- --mount
- "type=bind,source={{ rootDir }},dst=/fastx,ro"
- --mount
- "type=bind,source={{ varDir }},dst=/var/fastx,ro"
- --mount
- "type=bind,source={{ localDir }},dst=/fastx-local,ro"
- --mount
- "type=bind,source={{ configDir }},dst=/etc/fastx,ro"
- {{ image }}{{#if imageTag }}:{{ imageTag }}{{/if}}
- /fastx/scripts/start
- --fg
- --json