Home > OS >  The data volume of containers in Docker commit not preserved after volume content? To solve!
The data volume of containers in Docker commit not preserved after volume content? To solve!

Time:09-19

Docker run - name con - volumes - v/var/WWW/HTML - dit centos/bin/bash

Docker commit con - volumes test
Docker run - name test - dit test/bin/bash

After running the test, go in to see
Docker exec - it test/bin/bash
But found under/var/WWW/HTML content without saving
  • Related