- A collection of my frequently used docker images.
- These are used in my projects, applications testing and as my primary workspace.
cd /My-Docker-Images
MyDockerImage="ros-melodic"
docker build -t $MyDockerImage -f $MyDockerImage/$MyDockerImage.Dockerfile $MyDockerImage
Building the image may take 5 to 15 mins. This is done only for the first time.
For windows cmd
docker run --rm -d -t --name $MyDockerImage -v %cd%:/home/mount $MyDockerImage
For Mac terminal OR windows powershell
docker run --rm -d -t --name $MyDockerImage -v ${PWD}:/home/mount $MyDockerImage
For linux terminal
docker run --rm -d -t --name $MyDockerImage -v $(pwd):/home/mount $MyDockerImage
docker exec -ti $MyDockerImage bash