Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[computer use] Entrypoint change to allow restart #173

Open
yan-hic opened this issue Nov 20, 2024 · 2 comments
Open

[computer use] Entrypoint change to allow restart #173

yan-hic opened this issue Nov 20, 2024 · 2 comments

Comments

@yan-hic
Copy link

yan-hic commented Nov 20, 2024

Sometimes you want to stop/restart the container to not loose post-run changes to it i.e. installed s/w, firefox addons, tool tweaking, ...
Currently this is not possible as Xvfb will already have started and save state in a lockfile.

Workaround is to add the following at the beginning of entrypoint.sh:
sudo rm -fr /tmp/.X*
Not elegant and incomplete but does the job.

@madtank
Copy link

madtank commented Nov 25, 2024

I've been struggling to figure out how I can restart my container once stopped, this worked for me. Thanks!

@madtank
Copy link

madtank commented Nov 25, 2024

If you have an existing container you want to start, after you edit this file, make sure to set the permissions back, otherwise the container will not even attempt to start. I was able to make this update in Docker Desktop, and it solved my issue of not being able to restart.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants