docker run -i -t –name guest oraclelinux:6.6 /bin/bash
Tag Archives: docker
migrate docker container
sudo docker ps
Export:
sudo docker export 9a276b8fe557 > /home/vit/pyt.tar
du -sh /home/vit/pyt.tar
963M /home/vit/pyt.tar
du -sh /home/vit/pyt.tar.gz
374M /home/vit/pyt.tar.gz
Import:
cat /tmp/pyt.tar | sudo docker import –
docker attach the same container
sudo docker exec -it container_name bash
docker delete all images
sudo docker rmi $(docker images -q)
docker remove all containers
sudo docker rm $(docker ps -a -q)
Error getting container device or resource busy
Error response from daemon: Cannot start container cen7: Error getting container ff4ec8b079fd6c00d5683cb6d5af1692058a0ba286b0e84649d7d25425f9f650 from driver devicemapper: Error mounting ‘/dev/mapper/docker-253:0-1844937-ff4ec8b079fd6c00d5683cb6d5af1692058a0ba286b0e84649d7d25425f9f650’ on ‘/var/lib/docker/devicemapper/mnt/ff4ec8b079fd6c00d5683cb6d5af1692058a0ba286b0e84649d7d25425f9f650’: device or resource busy
FATA[0000] Error: failed to start one or more containers
sudo umpunt /var/lib/docker/devicemapper/mnt/ff4ec8b079fd6c00d5683cb6d5af1692058a0ba286b0e84649d7d25425f9f650
docker new tty
docker exec -it [container-id] bash