5

Docker commands 

# build new images
docker build -t patrikx3/openwrt-insomnia .

# run an image
docker run -t -i patrikx3/openwrt-insomnia bash

# list containers
docker ps

# run into an existing container that is running
docker exec -it CONTAINERID_OR_NAME bash

# create an image for a container like
docker commit CONTAINERID_OR_NAME patrikx3/openwrt-insomnia:linksys-wrt

# docker login before pushing
docker login

# list docker images
docker images

# upload an image to the registry
docker push patrikx3/openwrt-insomnia:latest
docker push patrikx3/openwrt-insomnia:linksys-wrt

Save images 

mkdir -p /media/backup/backup/docker
docker save patrikx3/openwrt-insomnia:latest | gzip > /media/backup/backup/docker/openwrt-insomnia:latest.tgz
sleep 5
docker save patrikx3/openwrt-insomnia:linksys-wrt | gzip > /media/backup/backup/docker/openwrt-insomnia:linksys-wrt.tgz

Load image 

gunzip -c /media/backup/backup/docker/openwrt-insomnia:latest.tgz | docker load
sleeep 5
gunzip -c /media/backup/backup/docker/openwrt-insomnia:linksys-wrt.tgz | docker load

For running or paused docker, use export: 

docker export DOCKERNAME_OR_TAG | gzip > mycontainer.tgz

Get from the registry 

docker pull patrikx3/openwrt-insomnia:latest
docker pull patrikx3/openwrt-insomnia:linksys-wrt
openwrt Insomnia
onenoteredis-uiangular-compileramdiskgitlistfreenomopenwrt-insomniadocker-debian-testing-mongodb-stableopenwrt-rediscorifeus-app-web-pagesaes-foldercorifeuscorifeus-web-materialhtml-pdfredis-ui-servergrunt-p3x-expresssystemd-managercorifeus-app-server-patrikx3corifeus-buildercorifeus-servercorifeus-builder-angularcorifeus-utilscorifeus-webfortune-cookieplay-ai-uiredis-ui-materialtools
  Bugs are evident™ - MATRIX
OK