Docker Notes
Johnny Pan (codeskill)
2020-09-08
https://www.alpinelinux.org/downloads/
setup-alpine
us
docker
eth0
dhcp
n
34sy_p@ssw0d
America/Costa_Rica
none
f
openssh
vda
sys
y
Install nano
editor.
The Docker package is in the Community repository.
Uncomment the Community repository.
Install docker
and docker-compose
.
Connecting to the Docker daemon through its socket requires you to add yourself to the docker
group.
To start the Docker daemon at boot.
First, create the volume that Portainer Server will use to store its database:
Then, download and install the Portainer Server container:
nano upgrade_portainer.sh
Search Image
Download Image
Show active containers
Show all containers
Stop container
Remove container
Access container shell
Mapear folders
Start Containers when Docker Restart
Instalar contenedor de Splunk
Levantar contenedor para recibir datos
Instalar stack Wordpress (Wordpress + MySQL)
The command docker-compose down
removes the containers and default network, but preserves your WordPress database.
The command docker-compose down --volumes
removes the containers, default network, and the WordPress database.
Instalar stack Wordpress (Wordpress + MySQL + PHPMyAdmin)
Version for MacOSX M1
Pi-Hole on Docker Swarm
First create macvlan config
Active macvlan on Docker Swarm
https://jpft.win/docker-swarm-macvlan/
https://blog.ivansmirnov.name/set-up-pihole-using-docker-macvlan-network/
https://blog.foureight84.com/swarm-your-pihole/
Smokeping
mkdir -p {smokeping/config,smokeping/data}
On manager node
On slave node
Install Portainer and Agent on Docker Swarm Cluster
Update Docker Swarm service