In docker you export an image into a tar file and then import that image without ever needing to download it again from docker hub.
To export an image you need to know the image name in your host (you can get image name by listing all images using
—------------------------—
—------------------------—
If you want to import this images in another server or in case all your images have been removed from your host server or local server, you just need to use
—------------------------—
—------------------------—
You need to be in the path that
Now after loading the image you can see that the image is added to your local registry. To check that use
#docker #import #export #save #load #registry #hub #image
To export an image you need to know the image name in your host (you can get image name by listing all images using
docker images
):—------------------------—
docker save python > python.tar
—------------------------—
python
is an image name in docker hub that we have downloaded it once from the hub registry. Now after using save
command you will have a .tar
file in your current path.If you want to import this images in another server or in case all your images have been removed from your host server or local server, you just need to use
load
command to load the image into your local docker registry:—------------------------—
docker load -i python.tar
—------------------------—
You need to be in the path that
python.tar
file exists.Now after loading the image you can see that the image is added to your local registry. To check that use
docker images
#docker #import #export #save #load #registry #hub #image
Export all collection documents in
#mongodb #export #mongoexport #mongodump #collection #database
MongoDB
to a JSON
file:mongoexport --db YOUR_DATABASE --collection YOUR_COLLECTION_NAME --out YOUR_OUTPUT_FILE_NAME.json
NOTE:
do not use this command for full database backup! Use mongodump
instead#mongodb #export #mongoexport #mongodump #collection #database
https://www.linode.com/docs/networking/nfs/how-to-mount-nfs-shares-on-debian-9/
#nfs #debian #mount #export #fstab
#nfs #debian #mount #export #fstab
Linode Guides & Tutorials
How to Mount NFS Shares on Debian 9
With NFS, computer users can access files across multiple servers on a network. This guide sets up two Linodes for file sharing as an NFS server and client.
https://stackoverflow.com/questions/13032409/ssh-remote-variable-assignment
#linux #sysadmin #ssh #local_variable #variable_expansion #bashrc #export
#linux #sysadmin #ssh #local_variable #variable_expansion #bashrc #export
Stack Overflow
ssh remote variable assignment?
The following does not work for me:
ssh user@remote.server "k=5; echo $k;"
it just returns an empty line.
How can I assign a variable on a remote session (ssh)?
Note: My question is not about ...
ssh user@remote.server "k=5; echo $k;"
it just returns an empty line.
How can I assign a variable on a remote session (ssh)?
Note: My question is not about ...