Here's how to save and load docker images:
Example scenario: To save a docker image from a docker repository and save it as a tar file locally.
- Save the image as a tarball
docker save repositoryname:tag > repotag.tar
- Zip the image
#!/bin/bash | |
# Written 2018-11-15 by 4410287 | |
# This script will create a backup file of a postgres database and compress it. It is capable of access a local or remote server to pull the backup. After creating a new backup, it will delete backups that are older than 15 days, with the exception of backups created the first of every month. It is recommended to create a seperate database user specifically for backup purposes, and to set the permissions of this script to prevent access to the login details. Backup scripts for different databases should be run in seperate folders or they will overwrite each other. | |
HOSTNAME= | |
USERNAME= | |
PASSWORD= | |
DATABASE= |
Here's how to save and load docker images:
Example scenario: To save a docker image from a docker repository and save it as a tar file locally.
docker save repositoryname:tag > repotag.tar
Install suggested plugin
solution go to below path and delete all files and restart vm | |
https://communities.vmware.com/t5/VMware-Workstation-Pro/The-process-cannot-access-the-file-because-another-process-has/td-p/466318 |
# docker build -t drupal:d7adp72 -f d7adp72.Dockerfile . | |
# docker image tag drupal:d7adp72 .../drupal:d7adp72 | |
# docker push .../drupal:d7adp72 | |
FROM php:7.2-apache | |
# install the PHP extensions we need | |
RUN set -ex; \ | |
\ | |
if command -v a2enmod; then \ |
--------------- LIST OF ESSENTIAL PACKAGES USED IN PHP TO CREATE PROJECT FASTER IN LARAVEL ------------------------ | |
------------------- PACKAGE 1 ------------------- | |
http://image.intervention.io/getting_started/installation | |
------------------- PACKAGE 1 ------------------- | |
INSTALLL USING IN PROJECT IN CMD | |
composer require intervention/image | |
THEN ADD below 2 lines INSIDE CONFIG/APP.PHP |
first install composer exe from this website - https://getcomposer.org/download/ | |
reboot pc | |
run 4 command in htdoc create project folder pro | |
>>>> C:\MAMP\htdocs\pro\cmd.exe | |
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" |
// create git | |
git init . | |
// add to staging area | |
git add . | |
// commit final changes | |
git commit -am "final commit" | |
//check current status |
dawnload wamp and codeignitor | |
to run all service of wamp stop mysqlcli.exe from taskmanager | |
or visit below url | |
--httpd.conf file of apache change port 80 to 8080 | |
#Listen 12.34.56.78:8080 | |
Listen 0.0.0.0:8080 | |
Listen [::0]:8080 |