Docker notes

3 May 2024

These are my very sparse notes on Docker.

It's a very programmatic way of dealing with your software.

Useful commands

List all container
docker ps -a
Deleting all stopped containers
docker container prune
docker stop NAME

Spinning up a MySQL database

docker run -d -e MYSQL_USER=laravel -e MYSQL_DATABASE=laravel -e MYSQL_PASSWORD=secret -e MARIADB_ROOT_PASSWORD=secret -p 3306:3306 --rm mariadb:latest
d detaches the container, so you can continue in your terminal. e is environmental variables. rm removes the container, when it is exited.

You might also enjoy

RockyLinux notes

RockyLinux notes

Published 2024-05-05

DevOps

Linux

Notes

Various notes gathered after converting to RockyLinux from CentOS.

Read the post →
Ansible

Ansible

Published 2024-04-26

DevOps

Notes

Various notes on Ansible that I have collected.

Read the post →
How to easily web scrape any website with Python

How to easily web scrape any website with Python

Published 2024-05-03

Datahoarding

Notes

Python

Web development

Learn how to easily web scrape any website using Python. I go through the various techniques I use.

Read the post →