diff --git a/images/docker-kasm/index.html b/images/docker-kasm/index.html index f23f500f79..8e47dc4207 100644 --- a/images/docker-kasm/index.html +++ b/images/docker-kasm/index.html @@ -4,36 +4,39 @@ image: lscr.io/linuxserver/kasm:latest container_name: kasm privileged: true - environment: - - KASM_PORT=443 - - DOCKER_HUB_USERNAME=USER #optional - - DOCKER_HUB_PASSWORD=PASS #optional - - DOCKER_MTU=1500 #optional - volumes: - - /path/to/data:/opt - - /path/to/profiles:/profiles #optional - - /dev/input:/dev/input #optional - - /run/udev/data:/run/udev/data #optional - ports: - - 3000:3000 - - 443:443 - restart: unless-stopped + security_opt: + - apparmor:rootlesskit #optional + environment: + - KASM_PORT=443 + - DOCKER_HUB_USERNAME=USER #optional + - DOCKER_HUB_PASSWORD=PASS #optional + - DOCKER_MTU=1500 #optional + volumes: + - /path/to/data:/opt + - /path/to/profiles:/profiles #optional + - /dev/input:/dev/input #optional + - /run/udev/data:/run/udev/data #optional + ports: + - 3000:3000 + - 443:443 + restart: unless-stopped

docker cli (click here for more info)

docker run -d \
   --name=kasm \
   --privileged \
-  -e KASM_PORT=443 \
-  -e DOCKER_HUB_USERNAME=USER `#optional` \
-  -e DOCKER_HUB_PASSWORD=PASS `#optional` \
-  -e DOCKER_MTU=1500 `#optional` \
-  -p 3000:3000 \
-  -p 443:443 \
-  -v /path/to/data:/opt \
-  -v /path/to/profiles:/profiles `#optional` \
-  -v /dev/input:/dev/input `#optional` \
-  -v /run/udev/data:/run/udev/data `#optional` \
-  --restart unless-stopped \
-  lscr.io/linuxserver/kasm:latest
-

Parameters

Containers are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate <external>:<internal> respectively. For example, -p 8080:80 would expose port 80 from inside the container to be accessible from the host's IP on port 8080 outside the container.

Ports (-p)

Parameter Function
3000 Kasm Installation wizard. (https)
443 Kasm Workspaces interface. (https)

Environment Variables (-e)

Env Function
KASM_PORT=443 Specify the port you bind to the outside for Kasm Workspaces.
DOCKER_HUB_USERNAME=USER Optionally specify a DockerHub Username to pull private images.
DOCKER_HUB_PASSWORD=PASS Optionally specify a DockerHub password to pull private images.
DOCKER_MTU=1500 Optionally specify the mtu options passed to dockerd.

Volume Mappings (-v)

Volume Function
/opt Docker and installation storage.
/profiles Optionally specify a path for persistent profile storage.
/dev/input Optional for gamepad support.
/run/udev/data Optional for gamepad support.

Miscellaneous Options

Parameter Function

Environment variables from files (Docker secrets)

You can set any environment variable from a file by using a special prepend FILE__.

As an example:

-e FILE__MYVAR=/run/secrets/mysecretvariable
+  --security-opt apparmor=rootlesskit `#optional` \
+  -e KASM_PORT=443 \
+  -e DOCKER_HUB_USERNAME=USER `#optional` \
+  -e DOCKER_HUB_PASSWORD=PASS `#optional` \
+  -e DOCKER_MTU=1500 `#optional` \
+  -p 3000:3000 \
+  -p 443:443 \
+  -v /path/to/data:/opt \
+  -v /path/to/profiles:/profiles `#optional` \
+  -v /dev/input:/dev/input `#optional` \
+  -v /run/udev/data:/run/udev/data `#optional` \
+  --restart unless-stopped \
+  lscr.io/linuxserver/kasm:latest
+

Parameters

Containers are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate <external>:<internal> respectively. For example, -p 8080:80 would expose port 80 from inside the container to be accessible from the host's IP on port 8080 outside the container.

Ports (-p)

Parameter Function
3000 Kasm Installation wizard. (https)
443 Kasm Workspaces interface. (https)

Environment Variables (-e)

Env Function
KASM_PORT=443 Specify the port you bind to the outside for Kasm Workspaces.
DOCKER_HUB_USERNAME=USER Optionally specify a DockerHub Username to pull private images.
DOCKER_HUB_PASSWORD=PASS Optionally specify a DockerHub password to pull private images.
DOCKER_MTU=1500 Optionally specify the mtu options passed to dockerd.

Volume Mappings (-v)

Volume Function
/opt Docker and installation storage.
/profiles Optionally specify a path for persistent profile storage.
/dev/input Optional for gamepad support.
/run/udev/data Optional for gamepad support.

Miscellaneous Options

Parameter Function
--security-opt apparmor=rootlesskit Some hosts require this on top of privileged for namespacing to work properly inside the DinD layer.

Environment variables from files (Docker secrets)

You can set any environment variable from a file by using a special prepend FILE__.

As an example:

-e FILE__MYVAR=/run/secrets/mysecretvariable
 

Will set the environment variable MYVAR based on the contents of the /run/secrets/mysecretvariable file.

Umask for running applications

For all of our images we provide the ability to override the default umask settings for services started within the containers using the optional -e UMASK=022 setting. Keep in mind umask is not chmod it subtracts from permissions based on it's value it does not add. Please read up here before asking for support.

Docker Mods

Docker Mods Docker Universal Mods

We publish various Docker Mods to enable additional functionality within the containers. The list of Mods available for this image (if any) as well as universal mods that can be applied to any one of our images can be accessed via the dynamic badges above.

Support Info