windows icon indicating copy to clipboard operation
windows copied to clipboard

[Question]: Restarting the program

Open ru040076 opened this issue 1 year ago • 8 comments

Is your question not already answered in the FAQ?

  • [X] I made sure the question is not listed in the FAQ.

Is this a general question and not a technical issue?

  • [X] I am sure my question is not about a technical issue.

Question

After the program closes, how do you restart it other than the initial docker run script?

ru040076 avatar Dec 03 '24 09:12 ru040076

docker start windows ? But this seems more like a general Docker question.

kroese avatar Dec 03 '24 10:12 kroese

Didn't work, it couldn't find the container, how would I go about getting the container? (I've already installed the instance of windows and everytime I run the docker script it gives me a storage error)

ghost avatar Dec 03 '24 18:12 ghost

If you use the run command, are you using the --rm (remove) flag? Because in that case its normal that everything gets deleted every time.

kroese avatar Dec 03 '24 18:12 kroese

I'm just using the docker CLI command in the repo's readme file that of being "docker run -it --rm -p 8006:8006 --device=/dev/kvm --device=/dev/net/tun --cap-add NET_ADMIN --stop-timeout 120 dockurr/windows". Can I modify this script to be able to run it without deleting everything and thus be able to start it?

ghost avatar Dec 03 '24 18:12 ghost

Yes.. the example removes everything (because its just an example). So just remove the --rm parameter and you will be fine.

kroese avatar Dec 03 '24 18:12 kroese

I removed the --rm parameter but still get the same error, "ERROR: Not enough free space in /storage, have 2 GB available but need at least 6 GB."

ghost avatar Dec 03 '24 19:12 ghost

How do you get it to retain the download and not redownload

ghost avatar Dec 06 '24 08:12 ghost

It will always retain the download. Just use the example compose file, and if using the run command then do not use the --rm flag.

kroese avatar Dec 06 '24 10:12 kroese

Forgot to mention, but I got it to work after some experimenting by using docker sp -a and then running docker start (container_name)

ghost avatar Dec 06 '24 22:12 ghost

Never heard of docker sp so I have no clue what it does, but Im glad it works now in any case.

kroese avatar Dec 06 '24 22:12 kroese

It lists containers

ghost avatar Dec 06 '24 22:12 ghost