27.4 Managing Data Persistence

Along with the REST containers, volumes for data persistence are also created. To use the configuration parameters of an old container using the volumes, perform the following steps:

  1. (Optional) Stop your current docker container using the following command:

    docker stop edirapi-container
  2. Create the second container using the following command:

    docker create --name edirapi-container-2 --network=host --volume edirapi-volume-2:/config/ edirapi:1.4.0
  3. Start the second container using the following command:

    docker start edirapi-container-2
  4. (Optional) Now the first container can be removed using the following command:

    docker rm edirapi-container