I set-up some AWS EC2 instances using Docker using docker-machine on my previous laptop, using commands like this:
docker-machine create --driver amazonec2 --amazonec2-instance-type "t2.micro" --amazonec2-security-group MY_SECURITY_GROUP container-1
On the old laptop, I can still view and control them:
$ docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
container-1 - amazonec2 Stopped Unknown
container-2 - amazonec2 Running tcp://xx.xx.xx.xxx:yyyy v20.10.7
container-3 - amazonec2 Stopped Unknown
But on my new laptop, I'm not able to see them:
$ docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
I have the AWS environment variables (key/secret) on the new laptop. I've looked at the hidden files in the old laptop to see if there's something that docker-machine uses to store a list of created containers, but I don't see anything.
Is there a command to add these to the new laptop, so I can see and start/stop them?