listmonk
init
- ai postgresql postgresql-contrib nginx
- sudo -u postgres psql
- create database listmonk;
- create user listmonk with encrypted password 'PW';
- grant all privileges on database listmonk to listmonk;
- ALTER DATABASE listmonk OWNER TO listmonk;
- quit
- https://github.com/knadh/listmonk/releases
- wget https://github.com/knadh/listmonk/releases/download/listmonk_VERSION_li
docker init
Install
- ai gpg
- curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
$(.docker-compose down
command is used to stop and remove containers, networks, and volumes defined in your `docker-compose.yml` file. If you run this command in the directory where your `docker-compose.yml` file is located, it will stop and remove the services.
Here's the basic usage:
docker-compose down
This will stop and remove the containers, networks, and volumes associated with your services.
If you want to also remove volumes, you can use the `-v` option:
docker cp
command is used to copy files or directories between a Docker container and the local filesystem, or between containers. Here's the basic syntax:
docker cp <source_path> <container_id_or_name>:<destination_path>
docker cp <container_id_or_name>:<source_path> <destination_path>
docker rm
The command is used to remove one or more containers. Here is the basic syntax:
docker rm [options] <container_id_or_name> [...]
- `<container_id_or_name>` is the ID or name of the container you want to remove.
- `[options]` are additional options you can use with the command.
For example, to remove a container with the ID `abc123`:
docker rm abc123
You can also remove multiple containers at once by specifying their IDs or names:
docker rm container1 container2 container3
Here are a couple of common options:
docker image
docker images -f dangling=true
command is used to list all "dangling" or unused images in your Docker environment. Dangling images are those that are not associated with any containers.
When you run this command, Docker will show you a list of images that are not associated with any containers. You can then decide whether to remove these dangling images using the `docker image prune` command.
If you want to remove dangling images, you can use the following command: