init

  1. ai postgresql postgresql-contrib nginx
  2. sudo -u postgres psql
  3. create database listmonk;
  4. create user listmonk with encrypted password 'PW';
  5. grant all privileges on database listmonk to listmonk;
  6. ALTER DATABASE listmonk OWNER TO listmonk;
  7. quit
  8. https://github.com/knadh/listmonk/releases
  9. wget https://github.com/knadh/listmonk/releases/download/listmonk_VERSION_li

Install

  1. ai gpg
  2. 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 \
 $(.
Tags

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>

Tags

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:

Tags

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:

Tags

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:

Tags