Comments (5)
I see, you compare it to Kasm Workspaces. :) I'll check what they provide, because I'm not familiar with them yet.
My primary platform is currently Windows with WSL2 and Docker Desktop for Windows.
For testing I use Debian with Docker Desktop for Linux or Ubuntu and CentOS without Docker Desktop.
So our environments are pretty different, which is not necessarilly a bad thing. :)
from ubuntu-vnc-xfce-g3.
Hello @capsulecorplab ,
I'm preparing the answer and testing the many variations of your scenario, but it's growing and the answer is becoming to be too complex. We have to constrain it a little bit.
Can you please answer the following questions?
A) Is your scenario primarily about
- persisting container states between restarts
- seeding new containers with/from prefabricated files/folders
B) On what environment are you
- Windows + WSL2 + Docker Desktop for WIndows
- Linux + Docker Desktop for Linux
- Linux, no Docker Desktop for Linux
- Mac + Docker Desktop for Mac
- Cloud + Docker (?) + Kubernetes (?)
Also be aware, that your yaml
example from above will not work correctly. I'll explain it later.
Regards,
accetto
from ubuntu-vnc-xfce-g3.
A) Is your scenario primarily about
- persisting container states between restarts
- seeding new containers with/from prefabricated files/folders
kind of both? The behavior I'd like to see is akin to how kasm workspaces binds a kasm_user
folder from the host machine to the container's /home/kasm-user
(i.e., $HOME
) directory for persisting files/folders, but will also copy any files/folders from a /home/kasm-default-profile
directory from within the image upon initial creation of the container.
B) On what environment are you
Linux (specifically, Linux Mint 21.1) running docker (version 20.10.12), no Docker Desktop for Linux
Also be aware, that your yaml example from above will not work correctly. I'll explain it later.
I'd be curious as to what you mean, since the yaml example currently works for producing the aforementioned behavior - it just requires the previously mentioned steps of manual copying files/folders into that persistent directory from a previous vnc session
from ubuntu-vnc-xfce-g3.
I've promised that I'll comment the yaml
file you've provided above.
I'll comment out the lines that I would not use.
version: "3.7"
services:
ubuntu-vnc-xfce-g3:
### generally, no need to use 'build' if you don't want to extend the base image
### in this case the default file named 'Dockerfile' from the current directory would be used by 'compose'
### however, I cannot say anything about it, because I don't know its content
### generally speaking, it should extent the base image **correctly**, otherwise it will not work
# build: .
### if you don't want to extend the base image, then just use it
### be sure to remove this 'image' tag if you decide to use 'build'
### otherwise 'compose' will try to push the image into the default repository
image: accetto/ubuntu-vnc-xfce-g3:latest
ports:
### I recommend to avoid the ports 5901/6901 on the host
# - "5901:5901"
### I would use some higher ports and I would bind also the noVNC port
- "25901:5901
- "26901:6901
### I recommend to avoiad the root user if it's not a requirement
### e.g. some applications will refuse to run as a root
# user: "0"
### you can override the defualt container user (1000) if you wish
# user: 1002
environment:
VNC_PW: password
### just a tip: for testing you could use also an empty password
# VNC_PW: ""
### just a remark: '256m' seems to be usually enough
shm_size: '512m'
### I'm not sure of the purpose of these two lines, I never used it this way
### actually the image provides Xfce Desktop, so you should not need them
### you can use the terminal inside the container
# stdin_open: true # docker run -i
# tty: true # docker run -t
volumes:
### this way of binding to an external volume on the host
### will not work correctly on any environment
### I'll provide more detailed explantion later, but
### you should not bind the whole $HOME directory
# - type: bind
# source: ./shared
# target: /home/headless
### prefer binding the individual subfolders, for example
- type: bind
source: ./shared/Documents
target: /home/headless/Documents
### the only working option is to use Docker volumes
### note that this will work starting from my release 23.03.2
# - type: volume
# source: my-home-volume
# target: /home/headles
### note that you'll need to add the following above the 'services' level
# volumes:
# my-home-volume
### I'm not sure of the purpose of these two lines
### I also haven't found this exact value in the official documentation
# security_opt:
# - seccomp=unconfined
I'll continue in the discussion thread #39 you've opened and I'll put my recommended yaml
there.
from ubuntu-vnc-xfce-g3.
Closing this issue because it has been continued in the discussion thread #39.
from ubuntu-vnc-xfce-g3.
Related Issues (20)
- Limiting VNC to localhost HOT 2
- Unsure about the expected sequence at startup HOT 3
- PulseAudio and noVNC HOT 4
- VNC Recording HOT 1
- Blank screen HOT 18
- no window borders, no controls after container stop - start HOT 6
- Can't seem to run `builder.sh` script following documentation in README HOT 10
- How/where do I add docker build args? HOT 9
- is it possiable to adding locales HOT 2
- Feature request: arm containers HOT 5
- Overriding HEADLESS_USER_NAME doesn't seem to work HOT 2
- Container exiting when extending image with packages which modify /etc/group HOT 3
- How to Change Language to other(exp. japanese) HOT 1
- [SOLVED] unusable - multiple bugs and issues HOT 2
- [way around] no screen/black screen after login - no logs (docker image on qnap NAS - container station) HOT 8
- Redirect to novnc full client HOT 4
- XFCE config adjustments HOT 3
- Is it possiable to hide cursor in tigerVNC or change tigerVNC to X11VNC HOT 1
- Fail to boot with Flatpak installed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ubuntu-vnc-xfce-g3.