- Download File at :
https://github.com/AshkanSecure/docker-gitlab.git
- insert Command :
docker-compose -f docker-compose.yml up
https://www.youtube.com/watch?v=JvM8bO1ywvE&
- Commit the required container as an image
docker commit -p [container-id] backup01
- You can save the image backup01 to tar file using the following command:
docker save -o backup01.tar backup01
ls -al | grep back -rw------- 1 root root 178697728 Mar 31 23:35 backup01.tar
You may choose to save the tar file on NFS mount point. Another option is directly pushing the image backup01 to your local registry. Before pushing the backup image, we need to tag it appropriately.
docker tag backup01 localhost:5000/backup-image:v1
In this example, localhost is the hostname where the local registry is located and 5000 is the port number that the registry listens on. If you are working on a Docker engine located on a different host to the registry, you must change the hostname to point to the correct host. Note the repository and tag name, backup-image:v1 in the example, must all be in lower case to be a valid tag.
docker push backup-image:v1
Want to keep this project going? Please donate generously https://www.buymeacoffee.com/securemanager