Linux:Services

From Cheatsheet
Revision as of 15:42, 22 August 2023 by Patrick (talk | contribs) (Created page with "Cheatsheets == MAAS == === Checks === <pre> Logs in either place: /var/log/maas/ /var/snap/maas/common/log </pre> <syntaxhighlight lang="bash"> # List status of MAAS services maas status # List MAAS commands maas --help # List available arguments for the init command maas init --help </syntaxhighlight> == Docker == === Checks === <syntaxhighlight lang="bash"> # List docker containers docker ps </syntaxhighlight> === Commands === <syntaxhigh...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


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

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