digital ocean - Change DigitalOcean access token for docker-machine -


i created host using digitalocean driver. however, had generate new access token , unable connect it. how reconfigure docker-machine use new access token?

each host spun docker-machine creates folder holding configuration under ~/.docker/machine/machines/ digitalocean access token , other information droplet stored in config.json file. let's @ specific 1 example:

$ cat ~/.docker/machine/machines/docker-001/config.json | jq . {   "drivername": "digitalocean",   "driver": {     "accesstoken": "9dasd89ssf6542notarealtoken455b44sdgf4685",     "dropletid": 4906043,     "dropletname": "",     "image": "ubuntu-14-04-x64",     "machinename": "docker-001",     "ipaddress": "45.32.128.70",     "region": "nyc3",     "sshkeyid": 7697371,     "size": "512mb",     "cacertpath": "/home/asb/.docker/machine/certs/ca.pem",     "privatekeypath": "/home/asb/.docker/machine/certs/ca-key.pem",     "driverkeypath": "",     "swarmmaster": false,     "swarmhost": "tcp://0.0.0.0:3376",     "swarmdiscovery": ""   },   "cacertpath": "/home/asb/.docker/machine/certs/ca.pem",   "servercertpath": "",   "serverkeypath": "",   "privatekeypath": "/home/asb/.docker/machine/certs/ca-key.pem",   "clientcertpath": "",   "swarmmaster": false,   "swarmhost": "tcp://0.0.0.0:3376",   "swarmdiscovery": "" } 

Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -