grimoire

personal wiki
git clone git://git.pyratebeard.net/grimoire.git
Log | Files | Refs

docker.md (465B)


      1 # docker
      2 
      3 ## pull files from inside container
      4 ```
      5 docker cp <container_id>:/path/to/file /path/to/save
      6 ```
      7 
      8 ## clean up old images
      9 ```
     10 docker rmi -f $(docker images --filter "dangling=true" -q)
     11 docker image prune
     12 ```
     13 
     14 
     15 ## ref
     16 - :1: https://stackoverflow.com/questions/44027873/how-to-create-a-new-docker-image-from-a-running-container-on-amazon
     17 - :2: https://stackoverflow.com/questions/43699368/configure-docker-daemon-port-to-enable-docker-apis/43713435#43713435