devilbox/docs/getting-started/important.rst
2019-03-02 20:40:45 +01:00

1.5 KiB

IMPORTANT

The following is a collection of important do's and don'ts you should be aware of when starting to use the Devilbox and Docker in general.

Table of Contents

local

Starting

Do not run via sudo or root

Do not start the Devilbox with sudo or as root user. If it complains about permissions when starting it with your normal system user, it is probably due to the fact, that your user is not in the docker group.

Ensure you have read and done the following:

  • Add user to docker group: prerequisites_docker_installation
  • Synronize file permissions: install_the_devilbox_set_uid_and_gid

Warning

If you start the Devilbox with sudo or as root user, it will most likely mess with your file permissions.

Starting, Stopping and Restarting

Whenever you want to stop the Devilbox, change configuration and start up again, do not forget to remove stopped container.

# Stop the Devilbox
host> docker-compose stop

# Remove stopped container
host> docker-compose rm

# Start the Devilbox
host> docker-compose up

start_the_devilbox_stop_and_restart (why do docker-compose rm?)

Backups

Ensure to do regular database backups! Better safe then sorry!

* backup_and_restore_mysql * backup_and_restore_pgsql * backup_and_restore_mongo