sickcodes / Docker-OSX

Run macOS VM in a Docker! Run near native OSX-KVM in Docker! X11 Forwarding! CI/CD for OS X Security Research! Docker mac Containers.
https://hub.docker.com/r/sickcodes/docker-osx
GNU General Public License v3.0
36.21k stars 1.79k forks source link

Running the same container afterwards #12

Closed igaurab closed 4 years ago

igaurab commented 4 years ago

Hi, although I do not know how to work with docker, I managed to install it and was able to run and install my Mac os following the README and reading through the issues.

The problem now I am having is how do I get back my MacOs that I had installed. I tried running docker start of the previously created container, but it only prints out the container id, and if I try running the docker run **** command which was prev used it creates a new instance of container. I think this is what was supposed to happen but, I am getting lost here.

How do I re run my prev created container, i guess

Thanks

sickcodes commented 4 years ago

Try the docker start command

igaurab commented 4 years ago

Hi I tried docker start container-id and it did nothing? Just prints the container id and nothing

sickcodes commented 4 years ago

The container is running, which means it might not be the right machine, or it didn't start correct.

Open all of them

docker start $(docker ps -q --all)
docker start $(docker ps -q --all --filter "ancestor=sickcodes/docker-osx")

and then close the ones you don't want

And then docker ps and save that name

then you can do docker start

sickcodes commented 4 years ago

Please check the readme for new instructions including how to launch the old machine

gameliee commented 4 years ago

I have the same problem as @igaurab. Here's the log

$ docker start 70766a2c9a69
70766a2c9a69

$ docker ps --all --filter "ancestor=sickcodes/docker-osx"
CONTAINER ID        IMAGE                  COMMAND                CREATED             STATUS                      PORTS               NAMES
70766a2c9a69        sickcodes/docker-osx   "./OpenCore-Boot.sh"   3 hours ago         Exited (1) 13 seconds ago                       elastic_varahamihira

I couldn't figure out how to start the installed image. Helps would be appreciate, thanks.

lucasfp13 commented 4 years ago

I am having the same problem of @ntd94 , if anyone knows how to fix this it would be great, thanks!

RockJohnson503 commented 3 years ago

sudo chmod 666 /dev/kvm @ntd94 @lucasfjportela @igaurab