If you want to completely remove the Devilbox follow this tutorial.
Backups
Before deleting the Devilbox git directory, ask yourself if you want to
make backups of all customizations you have done so far as well as of
all data that may be present within that directory.
Dump databases
Before shutting down the Devilbox, do a final backup of all of your
databases:
backup-and-restore-mysql
backup-and-restore-pgsql
backup-and-restore-mongo
Dumps will end up in backups/.
Shutdown the Devilbox
Before attempting to backup any file system data, make sure the Devilbox
is properly shutdown.
Terminal window
host> docker-composestop
Backup configuration files
You should now backup the following configuration files:
Backup your customized .env file
Backup your customized .docker-compose.override.yml file
Backup your customized bash configuration from bash/
Backup all custom service configurations from cfg/
Backup the Devilbox root certificate from ca/
Backup data and dumps
You should now backup the following data:
Backup any backups created in backups/
Backup any project or Docker data from data/
Remove the Devilbox
If you have followed the backup routine, you can continue deleting all
created components.
Remove Devilbox containers
Navigate to the Devilbox git directory and remove all Devilbox
container:
Terminal window
host> docker-composerm-f
Remove Devilbox network
List all existing Docker networks via
Terminal window
host> dockernetworkls
NETWORKIDNAMEDRIVERSCOPE
0069843ff0c3bridgebridgelocal
...
9c8d4a84cf2ddevilbox_app_netbridgelocal
Find the NETWORK ID of the Devilbox network and delete it:
Terminal window
host> dockernetworkrm9c8d4a84cf2d
Remove Devilbox git directory
You can simply delete the whole Devilbox git directory
Revert your system changes
AutoDNS
Revert any changes you have done for Auto-DNS to work.
setup-auto-dns
Manual DNS entries
Revert any changes you have done in /etc/hosts (or
C:\Windows\System32\drivers\etc for Windows)