Skip to content

Instantly share code, notes, and snippets.

View develforever's full-sized avatar

DevelForever develforever

  • Poland
View GitHub Profile
@develforever
develforever / docker-registry-commands.sh
Last active April 6, 2020 23:55
Docker registry run helper commands
#!/bin/bash
# create certificate
openssl req \
-newkey rsa:4096 -nodes -sha256 -keyout host.key \
-x509 -days 365 -out host.crt
# add certificate global
mkdir -p /usr/share/ca-certificates/local
cp host.crt /usr/share/ca-certificates/local/
#!/bin/bash
# Stop all running containers.
lxc stop -all
lxc storage list
truncate -s +20G /var/lib/lxd/disks/default.img
zpool set autoexpand=on default
zpool status -vg default
zpool online -e default device_id_from_step_above
zpool set autoexpand=off default