Skip to content

Save multiple docker images using one command

Currently I am exporting docker images using below command docker save imageName | gzip > imageName.tar.gz docker save mysql | gzip > mysql.tar.gz This command working fine for single image, i have tons of docker images in my local system, want to export. but i don’t know how to export all images …

Copy a file from one directory to another in C++

I am writing a C++ program to copy one file from one directory to another. I don’t want to use C++ 17 features. I have already implemented this in the following code. I am on Linux and I want to use the OS cp command to do this. I have written this code. The error is: cp: source: No such

How to make python script type when prompted on shell

Something similar to this: How to make python script press ‘enter’ when prompted on Shell Like that question, if I have test_enter.py: and this file: But instead of just a new line, I want it to type something then press “enter”. Is that possible? Answer Script to call: Caller script: …

Install Azure CLI on VM using Chef

I am currently writing a script(recipe) with Chef that executes on an Azure (Linux) virtual machine. For my purposes I need to install Azure CLI on that VM. I followed these steps from the documentation. Unfortunately, I get the error that I can’t use “sudo”, and if I remove “sudo&#822…