Docker Documentation - mohanrobotics/Documentation GitHub Wiki
docker build -t <IMG_NAME>:<TAG_NAME> . --no-cache=true
docker run --gpus all -it --rm -v $PWD/<DIR>:/home/<DIR> <IMG_NAME>:<TAG_NAME> bash
Ctrl + P , Ctrl + Q
docker attach CONTAINER_NAME
docker pull <IMAGE_NAME>
docker exec -it <CONTAINER_NAME> bash
docker images
docker container ls
docker kill <CONATAINER_ID>
sudo systemctl restart docker
Add --network --host
while running the container
In the host machine do,
sudo sysctl net.ipv4.conf.all.forwarding=1
sudo iptables -P FORWARD ACCEPT