Question

How I can remove the "dockerhost" from both local reference and remote instance?

Posted July 13, 2021 36 views
Arch LinuxAPI

Hi There!

LFD254

1) So, when I use this command: $ docker-machine ls, it came out like that:

7611bfb91b1db6a956806a8c28ed827e8216a12ff957edd3633daa53db513a6a - digitalocean Error Unknown dropletID is invalid because cannot be less than 1
dockerhost - digitalocean Error Unknown dropletID is invalid because cannot be less than 1
helio-nyc1 - digitalocean Error Unknown dropletID is invalid because cannot be less than 1

2) Then, I tried to remove them by docker-machine using this command:
docker-machine rm 7611bfb91b1db6a956806a8c28ed827e8216a12ff957edd3633daa53db513a6a,
it came out unexpected EOF,

also: docker-machine rm dockerhost, it came out unexpected EOF,

the same happened for this one too: docker-machine rm helio-nyc1,

it came out unexpected EOF,

I believe these host instances have to be removed on remote server side of the DigitalOcean.com, so I can build the dockerhost platform again, so I can do the Labs LFD254 Labs: 3.1-30

Thank You So Much!
Helio

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hi there,

The docker-machine keeps track of known machines using files inside ~/.docker/machine/ - you should be able to find them there and remove those that you no longer need. Make sure to backup if you’re not sure.

If this does not work, feel free to share your config.json file here, just make sure to remove any sensitive information like tokens and etc.

Regards,
Bobby