Docker execute a command and store the output to a variable

Posted on February 22, 2023 in Docker • Tagged with Shell, CLI, Docker, Docker Compose

How to exectute a command inside a docker and write the output to a variable

This command bringsup a docker and exectes the command inside the docker and stores the output into client

client =$(docker exec command)

Example : This command bringsup a docker and exectes the command inside the docker …


Continue reading

Docker Windows Tips-Trics

Posted on February 20, 2022 in Docker • Tagged with GIT, Pipeline, Docker, Docker Compose

Docker Windows Tips-Trics

Struggling to mount a host directory on windows machine?

Tip : Use "%cd%" instead of Linux command $(pwd) in Windows

docker run --name compare -it --rm -v "%cd%/report":/usr/app/src/report -v "%cd%/data":/usr/app/src/data ito-compare-excel:latest

Override Default Entry point in docker …


Continue reading