Difference between revisions of "Alpine Linux"

From wikieduonline
Jump to navigation Jump to search
Line 7: Line 7:
 
== Activities ==
 
== Activities ==
 
# 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>
  
 
== Related terms ==
 
== Related terms ==

Revision as of 11:21, 25 October 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

  1. Upgrade Alpine: apk upgrade --available
  2. docker run alpine

Activities

  1. Run Alpine Linux in a docker container: docker run -it alpine /bin/sh (Bash is not supported in Alpine)[1]
  2. Connect to an existing pod (myalpine) in K8s: kubectl exec -it myalpine -- /bin/sh

Related terms

See also

  • http://containertutorials.com/alpine/get_started.html
  • Advertising: