Sunday, July 24, 2022

Clone Docker Volumes

I can't take credit for this, but I definitely used this. Saving this for my future self looking for this again.

-------------------------

To clone docker volumes, you can transfer your files from one volume to another one. For that you have to manually create a new volume and then spin up a container to copy the contents.

Someone has already made a script for that, which you might use: https://github.com/gdiepen/docker-convenience-scripts/blob/master/docker_clone_volume.sh

If not, use the following commands (taken from the script):

# Supplement "old_volume" and "new_volume" for your real volume names

docker volume create --name new_volume

docker container run --rm -it \
           -v old_volume:/from \
           -v new_volume:/to \
           alpine ash -c "cd /from ; cp -av . /to"

Friday, July 22, 2022

Docker Install Ubuntu (convivence script)

Instead of digging through the docs at Docker's website here are the key commands to quickly install docker on a Linux host.
$ curl -fsSL https://get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh

Install Docker Engine on Ubuntu | Docker Documentation

 





Thursday, July 7, 2022

A Cloud Guru - Machine Learning Class

 GitHub - ACloudGuru-Resources/Course_AWS_Certified_Machine_Learning

Energy Storage using Sand?

Storing renewable energy is expensive, this company has developed a way to store heat energy in a "sand battery". This can be combined with other renewables to create a more efficient system overall. I am excited to see this technology applied to our biggest cities. 

 Polar Night Energy