In a Dev environment, you can first run docker stop <container id> to stop the particular container. Then what you have to do is restart the Orderer, CA, peers and CouchDB containers. After this you can start the container using the docker start <container id>. I tried this and the container state was retained.