User Tools

Site Tools


docker:index

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
docker:index [2019/02/04 10:19]
adyxax [Miscellaneous]
docker:index [2020/04/14 12:13] (current)
adyxax
Line 1: Line 1:
 ====== Docker ====== ====== Docker ======
- +~~REDIRECT>https://newwiki.adyxax.org/blog/docker/~~
-===== Command reference ===== +
- +
-  * Build with ''​docker build -t jde/graou .''​ +
-  * Run foreground with ''​docker run -ti jde/graou <​optional commands or arguments like bash>''​ +
-  * Run background with ''​docker run -d jde/graou <​optional commands or arguments>''​ +
-  * Connect to the docker hub ''​docker login''​. For a private hub, use ''​docker login <​private_hub>''​ +
-  * Pull and push images with ''​docker push adyxax/phpipam:1.2''​ or ''​docker pull adyxax/phpipam:1.2''​ +
-  * Set an autostart policy for a running container : ''​docker update --restart=unless-stopped phpipam''​ +
-  * Migrate a data volume from one host to another : +
-<​code>​ +
-export VOLUME=tiddlywiki +
-export DEST=10.1.0.242 +
-docker run --rm -v $VOLUME:/from alpine ash -c "​cd ​/from ; tar -cpf - . " \ +
-| ssh $DEST "docker ​run --rm -i -v $VOLUME:/to alpine ash -c 'cd /to ; tar -xfp - ' " +
-</​code>​ +
-  * cleaning : ''​docker system prune -f -a''​ +
- +
-====== Miscellaneous ====== +
- +
-  * [[compose]] +
-  * [[shell usage in dockerfile]]+
docker/index.txt · Last modified: 2020/04/14 12:13 by adyxax