I am using a docker machine to manage docker nodes in AWS. Today I tried to create a new node and failed due to incompatibility between the instance type and the specified AMI:
docker-machine create
Running pre-create checks...
Creating machine...
(certbot-config) Launching instance...
Error creating machine:
Error in driver during machine creation:
Error launching instance: InvalidParameterCombination: Virtualization type 'hvm' is required for instances of type 't2.micro'. Ensure that you are using an AMI with virtualization type 'hvm'. For more information, see http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/virtualization_types.html
Be that as it may, I am correcting the error. My problem is that I seem to have created a ghost machine; if I run docker-machine ls, I get the following:
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
certbot-config - amazonec2 Error Unknown MissingParameter: The request must contain the parameter InstanceId
status code: 400, request id:
I cannot delete it, kill it, restart it or provide it; each command exits with a 400 error from the AWS driver:
~$ docker-machine rm certbot-config
About to remove certbot-config
Are you sure? (y/n): y
Error removing host "certbot-config": unknown instance
MissingParameter: The request must contain the parameter KeyName
status code: 400, request id:
How can I delete this dangling instance? I have many instances working under the docker machine, so I would prefer not to do anything decisive, such as reinstalling.
Edit:
, : -? - , "docker-machine ls", . , , , , , ?