Docker for Beginners – Docker Container Restart Policies

In a previous article, we have spoken in length about what a docker compose is, and how it can help us in creating customized image builds. let's talk about how we can also further specify how the images when containerized should behave when struck with a termination, aka their "restart" behavior expectations.

What are DQL commands?

DQL or Data Query Language commands are used for querying data from database objects. This is only a single command which can result in records from dbo such as tables, views etc and can be subject to projection.

SELECT [ DISTINCT column_1, column_2 .. | * ]
FROM <table_name>
WHERE <query_condition>
GROUP BY <columns_list>
HAVING <condition>
ORDER BY <columns_list> [ ASC | DESC ]

What are TCL commands?

TCL or Transaction Control Language commands are used to enforce control on transactions within a database object which might result in a change in the state of data within the dbo.

These are:

  • COMMIT
  • ROLLBACK [ TO save_point_name ]
  • SAVEPOINT save_point_name

What are DCL commands?

DCL or Data Control Language commands are used enforce access control to data within the database or database objects.

These are:

  • GRANT <previlige_name> ON <object_name> TO <user_name>
  • REVOKE <previlige_name> ON <object_name> FROM <user_name>