🚀 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

Docker automatically exits

Posted on October 19, 2022 in CI/CD , Docker • Tagged with GIT, Pipeline, CI/CD, Docker, Docker Compose

Are you curious why docker container exits automatically?

Docker Container needs some process running in the foreground (Please note , Not as a background process) to keep the container running.

Dont know how to make a container running with a simple process in the foreground?

# open container with a shell prompt …

Continue reading

Docker , Docker compose network isssues

Posted on March 25, 2022 in CI/CD , Docker • Tagged with GIT, Pipeline, CI/CD, Docker, Docker network

Usecase : Setup a Docker compose file to bringup entire infrastructure required to to test a microservice(infact combination of couple of microservices as we wanted to run domain based integration tests) as part of the CICD pipelines

Technologies : One service go based microservice , another .Net based microservie that expose grpc …


Continue reading

Docker Windows Tips-Trics

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

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 comppse file

 MyContainer …

Continue reading

Install Docker on Amazon Linux WorkSpaces

Posted on July 03, 2020 in aws • Tagged with AWS, Workspace, Docker, Linux

Install Docker on Amazon Linux WorkSpaces

This is continuous to the post here , using Amazon Linux2 as my virtual desktop.

Amazon Linux doesnt come with docker pre installed so we need install required packages

Installing Docker And Starting the Service
$ sudo yum install -y docker

$ sudo service docker start

//Notice …

Continue reading