Category / Section
How to Upgrade a New Image using Docker Command
Published:
The following steps help you to upgrade a new image using the docker run command:
-
Take backup for your app_data and nginx volumes. This will help to retain the old data in case of any issues with the new deployment.
-
Stop and remove your old container.
docker stop {Container_id/name} docker rm -f {Container_id/name
-
Follow the below link to deploy a new container with the same volumes you used in the old container to avoid data loss.
-
Find the example docker command with the new image.
docker run --name boldbi -p 80:80 -p 443:443 \ -e APP_URL=<app_base_url> \ -e OPTIONAL_LIBS=<optional_library_names> \ -e widget_bing_map_enable=<true/false>\ -e widget_bing_map_api_key=<widget_bing_map_api_key> \ -v <host_path_for_appdata_files>:/application/app_data \ -v <host_path_for_nginx_config>:/etc/nginx/sites-available \ -d syncfusion/boldbi:<upgrade image tag>
Note: Make sure the app_base_url
, <host_path_for_appdata_files>
, and <host_path_for_nginx_config>
are the same path that you used in the previous container.