Install cairo-dock-logout-plug-in by entering the following commands in the terminal:
sudo apt update sudo apt install cairo-dock-logout-plug-in
Logout plug-in for Cairo-dock
A collection of official plug-ins and applets for cairo-dock. . A very simple plug-in that adds an icon to log out from your session.