Skip to content
This repository was archived by the owner on Jul 11, 2022. It is now read-only.
This repository was archived by the owner on Jul 11, 2022. It is now read-only.

[FR] Command to remove database engine #325

@mattstein

Description

@mattstein

Description

There should be a command to remove a database container, because I trust Nitro to help me remove anything it helps me add.

Right now I can hand-edit ~/.nitro/nitro.yaml to remove the relevant databases entry and run apply, and it works despite the slightly uncomfortable output:

# (...) unrelated stuff happens
Cleaning up...
  … removing mariadb-latest-3307.database.nitro   … creating backup @Database-2021-04-05-093134.sql ✗
Unable to backup database @Database Error response from daemon: lstat /var/lib/docker/overlay2/e15fe6056339dadf4cad6bd7815d0da3f4f435f3f00499faad3cd85120c0d5ae/merged/tmp/@Database-2021-04-05-093134.sql: invalid argument
Backups saved in /Users/mattstein/.nitro/mariadb-latest-3307.database.nitro 💾
# (...) unrelated cleanup finishes

Output could have been my fault, but I’d know who bug from PEBKAC if I was using nitro db destroy or nitro db remove-engine.

Metadata

Metadata

Labels

enhancementNot really required but improves quality of life

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions