Running and removing instances
Listing and inspecting
prod-1# odoocli instance list --server prod-1prod-1# odoocli instance info --instance acmeprod-1# odoocli instance size --instance acmeStarting and stopping
prod-1# odoocli instance container start --instance acmeprod-1# odoocli instance container stop --instance acmeprod-1# odoocli instance container restart --instance acmeA shell inside the instance container, for when you need Odoo's own tooling:
prod-1# odoocli instance container shell --instance acmeImages
Each instance runs an image built for its Odoo version. You can rebuild it, list what exists and switch which one the instance uses.
prod-1# odoocli instance image build --instance acmeprod-1# odoocli instance image list --instance acmeprod-1# odoocli instance image activate --instance acmePulling again reuses the existing blob. If an image is damaged, remove the image and prune the builder cache before pulling, or the same broken layer comes straight back.
nginx
The instance's nginx site is generated from its configuration. If the site and the configuration have drifted, rebuild it:
prod-1# odoocli instance nginx config rebuild --instance acmeRepair
prod-1# odoocli instance repair filesystem --instance acmeRepair fixes the instance's directory tree and permissions. It is the right first move when an instance runs but cannot write, and the wrong move for anything database-shaped.
Removing
prod-1# odoocli instance remove --instance acmeRemoving an instance removes its container, its data tree and the databases it owns. Take a backup first, and be certain the instance's active database is the one you think it is - see the import warning in Configuration.