Move docker machine certs from one folder to another

#StandWithUkraine
Today, 25th June 2022, Ukraine is still bravely fighting for democratic values, human rights and peace in whole world. Russians ruthlessly kill all civilians in Ukraine including childs and destroy their cities. We are uniting against Putinโ€™s invasion and violence, in support of the people in Ukraine. You can help by donating to Ukrainian's army.
docker-machine create -d generic --generic-ip-address i.p.a.d

tar -cf machine_certs.tar -C ~/.docker/machine/certs/ . 
tar -cf machine.tar -C ~/.docker/machine/machines/<machinename>/ .

In machine_certs.tar open config.json and edit /home/user, change to /root e.g. if you will use in root

On another host

mkdir -p ~/.docker/machine/machines/<machinename>
tar xvf machine.tar -C ~/.docker/machine/machines/<machinename>
mkdir -p ~/.docker/machine/certs
tar xvf machine_certs.tar -C ~/.docker/machine/certs


#docker
0
Ivan Borshchov profile picture
Apr 28, 2020
by Ivan Borshchov
Did it help you?
Yes !
No

Best related