Cyberworld-builders / dcv-server

How to run an Ubuntu desktop on remote hardware.
0 stars 0 forks source link

DCV Server - Document the Commands Used to Start a DCV Server Session #1

Open jaylong255 opened 2 weeks ago

jaylong255 commented 2 weeks ago

List DCV Server Sessions

dcv list-sessions

From Docker

docker exec -it CONTAINER_ID dcv list sessions
jaylong255 commented 2 weeks ago

Create Session

create-session --type=virtual --storage-root=%home% --owner "${_username}" --user "${_username}" "${_username}session"

From the Host

docker exec CONTAINER_ID create-session --type=virtual --storage-root=%home% --owner "${_username}" --user "${_username}" "${_username}session"

From Systems Manager

aws ecs execute-command \
    --cluster MyCluster \
    --task arn:aws:ecs:us-east-1:123456789012:task/MyCluster/d789e94343414c25b9f6bd59eEXAMPLE \
    --container MyContainer \
    --interactive \
    --command "dcv create-session --type=virtual --storage-root=%home% --owner "${_username}" --user "${_username}" "${_username}session"
jaylong255 commented 2 weeks ago

Run a Docker Container with a Folder Mount

docker run -d \
  --name my_container \
  -v /path/on/host:/path/in/container \
  my_image