Docker


Dockerfile syntax reference


Docker Run command

Notes


Run
docker exec  -i -t <container id> /bin/bash
-i interactive, -t allocate a pseudo-tty
-d detach (deamon)
--rm remove container


Export image
You will need to save the Docker image as a tar file:
docker save -o <path for generated tar file> <image name>

Then copy your image to a new system with regular file transfer tools such as cp, scp or rsync(preferred for big files). After that you will have to load the image into Docker:

docker load -i <path to image tar file>

PS: You may need to sudo all commands.

EDIT: You should add filename (not just directory) with -o, for example:

docker save -o c:/myfile.tar centos:16

Misc

kubernetes
https://medium.freecodecamp.org/learn-kubernetes-in-under-3-hours-a-detailed-guide-to-orchestrating-containers-114ff420e882

Subpages (2): inspection kubernetes
Comments