GitHub user dosubot[bot] added a comment to the discussion: Tooltip for Map 
Deck.gl Polygon

<!-- Answer -->
To fully uninstall Superset 4.1.1 and install 6.0 using Docker, follow these 
steps for a clean setup:

1. Stop and remove all Superset containers and volumes to clear out the 
metadata database and persistent data:
   ```bash
   docker compose down -v
   ```
   This deletes all persistent data, including charts, dashboards, and users. 
If you want to keep your data, back up your metadata database before running 
this command [source](https://github.com/apache/superset/issues/34284).

2. Clean up any residual Docker volumes and files:
   ```bash
   docker system prune --volumes
   ```
   This ensures no leftover volumes cause migration errors 
[source](https://github.com/apache/superset/issues/31951).

3. Check out the Superset 6.0 tag or set the TAG environment variable to 
`6.0.0`, then start the new containers:
   ```bash
   git checkout tags/6.0.0
   docker compose -f docker-compose-image-tag.yml up
   ```
   Or use the official image:
   ```bash
   docker compose -f docker-compose-image-tag.yaml up
   ```
   [source](https://github.com/apache/superset/issues/35823)

4. Once the containers are running, initialize Superset inside the container:
   ```bash
   docker exec -it <superset_container_name> superset db upgrade
   docker exec -it <superset_container_name> superset init
   ```
   This applies database migrations and sets up permissions 
[source](https://github.com/apache/superset/discussions/37261).

5. If you have custom configuration, place your config file at 
`docker/pythonpath_dev/superset_config_docker.py` and restart the containers to 
apply changes [source](https://github.com/apache/superset/issues/37357).

Best practices: always back up your metadata database before removing volumes 
or running migrations, make sure your Docker image and local code are both at 
the same version tag, and check the release notes for breaking changes 
[source](https://github.com/apache/superset/discussions/37232).

Let me know if you need details on backing up or restoring your metadata 
database, or if you have custom plugins/configurations to migrate.


<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*

---
<sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/ad68a93d-13a3-48ef-b2e1-35bbaafb5023?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/ad68a93d-13a3-48ef-b2e1-35bbaafb5023?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/ad68a93d-13a3-48ef-b2e1-35bbaafb5023?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/ad68a93d-13a3-48ef-b2e1-35bbaafb5023?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/ad68a93d-13a3-48ef-b2e1-35bbaafb5023?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/ad68a93d-13a3-48ef-b2e1-35bbaafb5023?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/ad68a93d-13a3-48ef-b2e1-35bbaafb5023?feedback_type=other)</sup>

[![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=To%20fully%20uninstall%20Superset%204.1.1%20and%20install%206.0%20using%20Docker%2C%20follow%20these%20steps%20for%20a%20clean%20setup%3A%0A%0A1.%20Stop%20and%20remove%20all%20Superset%20containers%20and%20volumes%20to%20clear%20out%20the%20metadata%20database%20and%20persistent%20data%3A%0A%20%20%20%60%60%60bash%0A%20%20%20docker%20compose%20down%20-v%0A%20%20%20%60%60%60%0A%20%20%20This%20deletes%20all%20persistent%20data%2C%20including%20charts%2C%20dashboards%2C%20and%20users.%20If%20you%20want%20to%20keep%20your%20data%2C%20back%20up%20your%20metadata%20database%20before%20running%20this%20command%20%5Bsource%5D%28https%3A//github.com/apache/superset/issues/34284%29.%0A%0A2.%20Clean%20up%20any%20residual%20Docker%20volumes%20and%20files%3A%0A%20%
 
20%20%60%60%60bash%0A%20%20%20docker%20system%20prune%20--volumes%0A%20%20%20%60%60%60%0A%20%20%20This%20ensures%20no%20leftover%20volumes%20cause%20migration%20errors%20%5Bsource%5D%28https%3A//github.com/apache/superset/issues/31951%29.%0A%0A3.%20Check%20out%20the%20Superset%206.0%20tag%20or%20set%20the%20TAG%20environment%20variable%20to%20%606.0.0%60%2C%20then%20start%20the%20new%20containers%3A%0A%20%20%20%60%60%60bash%0A%20%20%20git%20checkout%20tags/6.0.0%0A%20%20%20docker%20compose%20-f%20docker-compose-image-tag.yml%20up%0A%20%20%20%60%60%60%0A%20%20%20Or%20use%20the%20official%20image%3A%0A%20%20%20%60%60%60bash%0A%20%20%20docker%20compose%20-f%20docker-compose-image-tag.yaml%20up%0A%20%20%20%60%60%60%0A%20%20%20%5Bsource%5D%28https%3A//github.com/apache/superset/issues/35823%29%0A%0A4.%20Once%20the%20containers%20are%20running%2C%20initialize%20Superset%20inside%20the%20container%3A%0A%20%20%20%60%60%60bash%0A%20%20%20docker%20exec%20-it%20%3Csuperset_container_name%3E%20
 
superset%20db%20upgrade%0A%20%20%20docker%20exec%20-it%20%3Csuperset_container_name%3E%20superset%20init%0A%20%20%20%60%60%60%0A%20%20%20This%20applies%20database%20migrations%20and%20sets%20up%20permissions%20%5Bsource%5D%28https%3A//github.com/apache/superset/discussions/37261%29.%0A%0A5.%20If%20you%20have%20custom%20configuration%2C%20place%20your%20config%20file%20at%20%60docker/pythonpath_dev/superset_config_docker.py%60%20and%20restart%20the%20containers%20to%20apply%20changes%20%5Bsource%5D%28https%3A//github.com/apache/superset/issues/37357%29.%0A%0ABest%20practices%3A%20always%20back%20up%20your%20metadata%20database%20before%20removing%20volumes%20or%20running%20migrations%2C%20make%20sure%20your%20Docker%20image%20and%20local%20code%20are%20both%20at%20the%20same%20version%20tag%2C%20and%20check%20the%20release%20notes%20for%20breaking%20changes%20%5Bsource%5D%28https%3A//github.com/apache/superset/discussions/37232%29.%0A%0ALet%20me%20know%20if%20you%20need%20details%20o
 
n%20backing%20up%20or%20restoring%20your%20metadata%20database%2C%20or%20if%20you%20have%20custom%20plugins/configurations%20to%20migrate.)&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/37870)

GitHub link: 
https://github.com/apache/superset/discussions/37870#discussioncomment-15763716

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to