Question

Can't remove a docker-machine

I have a problem, probably of my own making. I started a docker machine on digital ocean with an API token, which I generated, but I didn’t save the token, stupidly. The DigitalOcean UI doesn’t seem to allow the displaying of this token, so I created a new one. But I can’t seem to get rid of the docker machine I created on DigitalOcean, at least as far as my local docker-machine is concerned. I think this is because I’m no longer using the token that I used to start the machine. I’ve deleted the machine via DigitalOcean’s UI, but I still get this on my machine:

Bills-New-iMac:~ bwright $ docker-machine ls NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS consul - digitalocean Running tcp://104.236.28.74:2376 v1.13.1 docker-app-machine - digitalocean Error Unknown GET https://api.digitalocean.com/v2/droplets/40085932: 401 Unable to authenticate you. Bills-New-iMac:~ bwright $ docker-machine kill docker-app-machine Killing “docker-app-machine”… POST https://api.digitalocean.com/v2/droplets/40085932/actions: 401 Unable to authenticate you. Bills-New-iMac:~ bwright $ docker-machine rm docker-app-machine About to remove docker-app-machine WARNING: This action will delete both local reference and remote instance. Are you sure? (y/n): y Error removing host “docker-app-machine”: DELETE https://api.digitalocean.com/v2/account/keys/6462501: 401 Unable to authenticate you. Bills-New-iMac:~ bwright $ docker-machine ls NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS consul - digitalocean Running tcp://104.236.28.74:2376 v1.13.1 docker-app-machine - digitalocean Error Unknown GET https://api.digitalocean.com/v2/droplets/40085932: 401 Unable to authenticate you. Bills-New-iMac:~ bwright $

Any thoughts on how I can clean up the mess I made?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

You probably figured that out already, by now. Anyway, at the time of this writing, docker-machine’s local configuration is stored here: ~/.docker/machine/machines/ So, to clean that up, go there, get a list and remove the ‘docker-app-machine’ entry. It works in my machine :-)

You probably figured that out already, by now. Anyway, at the time of this writing, docker-machine’s local configuration is stored here: ~/.docker/machine/machines/ So, to clean that up, go there, get a list and remove the ‘docker-app-machine’ entry. It works in my machine :-)

You probably figured that out already, by now. Anyway, at the time of this writing, docker-machine’s local configuration is stored here: ~/.docker/machine/machines/ So, to clean that up, go there, get a list and remove the ‘docker-app-machine’ entry. It works in my machine :-)