LXC/Logrotate: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Created page with "==LXC » Logrotate » Alpine== <syntaxhighlight lang="bash"> lxc image ls images:alpine/3.21 lxc launch images:alpine/3.21 logrotate lxc delete logrotate/alpine:3.21 2>/dev/null lxc snapshot logrotate alpine:3.21 lxc restore logrotate alpine:3.21 lxc info logrotate </syntaxhighlight> ==LXC » Logrotate » Ubuntu== <syntaxhighlight lang="bash"> lxc image ls ubuntu:24.04 lxc launch ubuntu:24.04 logrotate lxc delete logrotate/ubuntu:24.04 2>/dev/null lxc sna..."
 
No edit summary
Line 20: Line 20:
lxc info    logrotate
lxc info    logrotate
</syntaxhighlight>
</syntaxhighlight>
==Playground==
{|
| colspan="2" |
<syntaxhighlight lang="bash">
INET_PATH='.[].state.network.[].addresses[]|select(.family=="inet" and .scope=="global").address'
INET_ADDR=$(lxc list name=logrotate -f=yaml|yq  -r "${INET_PATH}")
</syntaxhighlight>
| valign="top" |
<syntaxhighlight lang="bash">
apk cache clean
rm -vrf /var/cache/apk/*
</syntaxhighlight>
|-
| colspan="3" |
----
|-
| valign="top" |
<syntaxhighlight lang="bash">
</syntaxhighlight>
| valign="top" |
<syntaxhighlight lang="bash">
</syntaxhighlight>
| valign="top" |
<syntaxhighlight lang="bash">
</syntaxhighlight>
|}
==References==
{|
|valign='top'|
* [[LXC/Alpine/Apache/PHP|LXC » Alpine » Apache » PHP]]
* [[LXC/Alpine/Nginx/PHP|LXC » Alpine » Nginx » PHP]]
* [[Linux Containers|LXC]]
|valign='top'|
|valign='top'|
|-
|colspan='3'|
----
|-
|valign='top'|
* [[Kubernetes]]
* [[Multipass]]
* [[Minikube]]
* [[Podman]]
* [[Vagrant]]
* [[Docker]]
* [[Qemu]]
* [[Helm]]
* [[K9s]]
* [[K8s]]
|valign='top'|
* [[Terraform]]
* [[Proxmox]]
* [[Kubectl]]
* [[Ansible]]
* [[CIDR]]
* [[UFW]]
* [[Git]]
|valign='top'|
|}

Revision as of 03:04, 23 May 2025

LXC » Logrotate » Alpine

lxc image ls images:alpine/3.21
lxc launch   images:alpine/3.21 logrotate

lxc delete   logrotate/alpine:3.21 2>/dev/null
lxc snapshot logrotate alpine:3.21
lxc restore  logrotate alpine:3.21
lxc info     logrotate

LXC » Logrotate » Ubuntu

lxc image ls ubuntu:24.04
lxc launch   ubuntu:24.04 logrotate

lxc delete   logrotate/ubuntu:24.04 2>/dev/null
lxc snapshot logrotate ubuntu:24.04
lxc restore  logrotate ubuntu:24.04
lxc info     logrotate

Playground

INET_PATH='.[].state.network.[].addresses[]|select(.family=="inet" and .scope=="global").address'
INET_ADDR=$(lxc list name=logrotate -f=yaml|yq  -r "${INET_PATH}")
apk cache clean
rm -vrf /var/cache/apk/*

References