Stateless : Store the data externally, design the container running with external data. Therefore, data will be stored if container deletes. docker run -d Lets create mysql:5.7 container. And then let my host directory to share with container(mysql:5.7 ) directory. docker run -d --name wordpressdb_hostvolume -e MYSQL_ROOT_PASSWORD=password -e MYSQL_DATABASE=wordpress -v /Users/joohyunyoon/wordpr..