🚀 Supply-chain tech moves fast. Get curated signals on WMS, warehouse automation, robotics, AI, and logistics. Visit Supply Chain Tech Signals →

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

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 and stores the output into client

``` client=$(docker-compose -f quickstart.yml exec hydra \ hydra create …


Continue reading