Attention

You can now create your own custom flavour of PHP-FPM Community images and easily add them to the Devilbox: PHP-FPM Community

Remove the Devilbox

If you want to completely remove the Devilbox follow this tutorial.

Table of Contents

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:

Dumps will end up in backups/.

Shutdown the Devilbox

Before attempting to backup any file system data, make sure the Devilbox is properly shutdown.

host> docker-compose stop

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:

host> docker-compose rm -f

Remove Devilbox network

  1. List all existing Docker networks via

    host> docker network ls
    
    NETWORK ID          NAME                                 DRIVER              SCOPE
    0069843ff0c3        bridge                               bridge              local
    ...
    9c8d4a84cf2d        devilbox_app_net                     bridge              local
    
  2. Find the NETWORK ID of the Devilbox network and delete it:

    host> docker network rm 9c8d4a84cf2d
    

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.

See also

Setup Auto DNS

Manual DNS entries

Revert any changes you have done in /etc/hosts (or C:\Windows\System32\drivers\etc for Windows)

Remove Devilbox CA from your browser

Remove the Devilbox CA from your browser