This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| adb devices | |
| adb shell screencap -p /sdcard/screen.png | |
| adb pull -p -a /sdcard/screen.png | |
| adb shell rm /sdcard/screen.png | |
| For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c-%%a-%%b) | |
| For /f "tokens=1-3 delims=/:" %%a in ("%TIME%") do (set mytime=%%a-%%b-%%c) | |
| set mytime=%mytime: =% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| original_image="iwanbolzern/my-awesome-repo" | |
| new_name="iwanbolzern/my-awesome-repo" | |
| target_acr="my-private-registry:5000" | |
| # Download all images | |
| docker pull $original_image --all-tags | |
| # retag image and push to new acr | |
| docker images $original_image \ | |
| --format "docker tag {{.Repository}}:{{.Tag}} $target_acr/$new_name:{{.Tag}} | docker push $target_acr/$new_name:{{.Tag}}" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source_acr="my.private-registry.com:5000" | |
| target_acr="my-other.private-registry.com:5001" | |
| # read username password for source registry (needed to query api) | |
| echo -n "Insert Username: " | |
| read username | |
| echo -n "Insert Password: " | |
| read -s pw | |
| echo |
NewerOlder