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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
#!/bin/bash | |
#Warsync - a tool for speeding up rsync of war files by unzipping them on the source and target and then rsyncing the diffs | |
echo "Usage: $0 source.war destinationserver" | |
CURRENTDIR=$PWD | |
WARFILE="$CURRENTDIR/$1" | |
REMOTEHOST=$2 | |
CURRENTUSER=$USER | |
REMOTEHOME="/home/$CURRENTUSER" | |
WARFILENAME=`basename $1` | |
echo "source is $WARFILE target is $TARGET" |
1. Add Copy File build phase, Destination: Wrapper, Subpath: Contents/Library/LaunchServices, Codesign on Copy:Disable. | |
2. Modify Info.plist for Both target: | |
2.1 Add "Tools owned after installation" in App's Info.plist, value is: identifier "<helper's bundle identifier>" and anchor apple generic and certificate leaf[subject.CN] = "<Certificate Name>" and certificate 1[field.1.2.840.113635.100.6.2.1] /* exists */ | |
2.2 Add "Clients allowed to add and remove tool" in Helper's Info.plist, it is a array, so item 0's value is: identifier "<app's bundle identifier>" and anchor apple generic and certificate leaf[subject.CN] = "<Certificate Name>" and certificate 1[field.1.2.840.113635.100.6.2.1] /* exists */ | |
2.3 Make sure each .plist file is set as Info.plist in Target's Build settings. |
FROM ubuntu:latest | |
RUN apt-get update -q && apt-get -qy install \ | |
build-essential pkg-config libc6-dev m4 g++-multilib \ | |
autoconf libtool ncurses-dev unzip git python \ | |
zlib1g-dev wget bsdmainutils automake curl | |
WORKDIR /root/ | |
RUN git clone https://github.com/zcash/zcash.git | |
WORKDIR /root/zcash/ |
# 1. Backup image tags to text file. | |
# $ docker images --format "{{.Repository}}:{{.Tag}} {{.ID}}" > img_id.txt | |
# | |
# 2. Execute clean-docker-for-mac script | |
# $ bash clean-docker-for-mac.sh $(docker images --format "{{.ID}}" | xargs) | |
# | |
# source: https://gist.github.com/MrTrustor/e690ba75cefe844086f5e7da909b35ce#file-clean-docker-for-mac-sh | |
# | |
# 3. Execute this script to restore tags from text file. |
% 2.3 | |
word(astante, a,s,t,a,n,t,e). | |
word(astoria, a,s,t,o,r,i,a). | |
word(baratto, b,a,r,a,t,t,o). | |
word(cobalto, c,o,b,a,l,t,o). | |
word(pistola, p,i,s,t,o,l,a). | |
word(statale, s,t,a,t,a,l,e). | |
crossword(V1, V2, V3, H1, H2, H3) :- | |
word(V1, _,V1H1,_,V1H2,_,V1H3,_), |
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
// | |
// main.m | |
// EndpointSecurityDemo | |
// | |
// Created by Omar Ikram on 17/06/2019 - Catalina 10.15 Beta 1 (19A471t) | |
// Updated by Omar Ikram on 15/08/2019 - Catalina 10.15 Beta 5 (19A526h) | |
// Updated by Omar Ikram on 01/12/2019 - Catalina 10.15 (19A583) | |
// | |
#import <Foundation/Foundation.h> |
_________ _____ _______________ _____
\_ ___ \\ \\___________ \____ / ____\ ~/.bash/cliref.md
/ \ \/| | | || _/ __ \ __\ copy/paste from whatisdb
\ \___|__ |_|_ || | \ __/|_ | http://pastebin.com/yGmGiDQX
\________ /_____ \_||____|_ /____ /_| [email protected]
20160515 \/ 1527 \/ \/ \/
alias CLIRef.txt='curl -s "http://pastebin.com/raw/yGmGiDQX" | less -i'