Difference between revisions of "Alpine Linux"
Jump to navigation
Jump to search
↑ http://containertutorials.com/alpine/get_started.html
Line 8: | Line 8: | ||
# Run Alpine Linux in a docker container: <code>[[docker run -it alpine]] /bin/sh</code> ([[Bash]] is not supported in Alpine)<ref>http://containertutorials.com/alpine/get_started.html</ref> | # Run Alpine Linux in a docker container: <code>[[docker run -it alpine]] /bin/sh</code> ([[Bash]] is not supported in Alpine)<ref>http://containertutorials.com/alpine/get_started.html</ref> | ||
# Connect to an existing pod (myalpine) in K8s: <code>[[kubectl exec -it myalpine -- /bin/sh]]</code> | # Connect to an existing pod (myalpine) in K8s: <code>[[kubectl exec -it myalpine -- /bin/sh]]</code> | ||
+ | # <code>[[kubectl run -it alpine --image=alpine -- sh]]</code> | ||
== Related terms == | == Related terms == |
Revision as of 10:50, 17 November 2023
Alpine Linux is a Linux distribution based on musl and BusyBox, designed to be small and resource efficiency, as of 2020 is around 6 MB. Alpine Linux uses apk
package manager and OpenRC init system (not systemd).
Operations
- Upgrade Alpine:
apk upgrade --available
- docker run alpine
Activities
- Run Alpine Linux in a docker container:
docker run -it alpine /bin/sh
(Bash is not supported in Alpine)[1] - Connect to an existing pod (myalpine) in K8s:
kubectl exec -it myalpine -- /bin/sh
kubectl run -it alpine --image=alpine -- sh
Related terms
ash
shell- RancherOS
- Fedora CoreOS
osinfo-query os
- AWS Bottlerocket
docker pull alpine
alpine/helm
- Busybox
- Distroless
/etc/sysctl.conf
- FROM node:lts-alpine
See also
apk, [ add | list | upgrade | info | search ] apk --help
- Alpine Linux, Red Hat Enterprise Linux CoreOS (RHCOS),
apk, addgroup
, Debian slim, Bottlerocket, Busybox, Flatcar, Wolfi, alpine:latest - BusyBox, Almquist shell (ash), Alpine, Distroless, Wolfi OS
Advertising: