Linux:Services

From Cheatsheet
Revision as of 15:43, 22 August 2023 by Patrick (talk | contribs)
Jump to navigationJump to search

Docker

Checks

# List docker containers 
docker ps

Commands

# Enter the shell inside a docker container
docker exec -ti a89sd98sa7d /bin/bash

# Execute a command inside a container as a specific user
docker exec -it -u root asd87289hasdadz tail /var/log/nginx/access.log

PowerDNS

MAAS

Checks

Logs in either place:
/var/log/maas/
/var/snap/maas/common/log
# List status of MAAS services
maas status

# List MAAS commands
maas --help

# List available arguments for the init command
maas init --help