docker
installation on Ubuntu; rather than using official Docker CE repository - used the Ubunutu package:
apt-get install docker.io
apt-get install docker-compose
Change the default location (on laptop):
couple of options:
a) create an override directory (as per: https://sanenthusiast.com/change-default-image-container-location-docker/ )
in /etc/systemd/system/docker.service.d/docker.conf and make appropriate command line entry in this (-g)
b) Directly edit the file in (https://linuxconfig.org/how-to-move-docker-s-default-var-lib-docker-to-another-directory-on-ubuntu-debian-linux ): /lib/systemd/system/docker.service
FROM:
ExecStart=/usr/bin/docker daemon -H fd://
TO:
ExecStart=/usr/bin/docker daemon -g /new/path/docker -H fd://
I'm using OPTION (B) - direct edit and then restart docker engine.
Make sure docker service starts at boot:
systemctl enable docker
Remember to add <username> to the docker group- so that <username> can execute docker commands.
usermod -aG docker <username>
docker info
gives info (heh) ...also shows the 'bigDisk' is the Docker root dir