S390x/Docker: Difference between revisions
No edit summary |
Prabuanand (talk | contribs) (Renamed Category from IBM to S390x) |
||
(4 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
== Running Alpine containers on Docker on Alpine s390x == | == Running Alpine containers on Docker on Alpine s390x == | ||
After [ | After [[S390x/Installation|installing]] Alpine on s390x, Docker needs to be installed first by adding the <code>community</code> respository: | ||
:For stable release, run: | :For stable release, run: | ||
Line 15: | Line 15: | ||
Install Docker: | Install Docker: | ||
{{cmd|# apk update | |||
# apk add {{pkg|docker|arch=s390x}}}} | |||
Start Docker service: | Start Docker service: | ||
{{cmd|# service docker start}} | |||
Enable the Docker service to auto start on next boot: | |||
{{cmd|# rc-update add docker}} | |||
Run Alpine s390x container: | Run Alpine s390x container: | ||
{{cmd|# docker run -ti alpine sh}} | |||
== Running Alpine containers on Docker on other s390x distros == | |||
Run: | |||
{{cmd|# docker run -ti alpine sh}} | |||
[[category:S390x]] |
Latest revision as of 15:49, 15 October 2024
Running Alpine containers on Docker on Alpine s390x
After installing Alpine on s390x, Docker needs to be installed first by adding the community
respository:
- For stable release, run:
# echo http://dl-cdn.alpinelinux.org/alpine/latest-stable/community >> /etc/apk/repositories
- For rolling release, run:
# echo http://dl-cdn.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories
Note:
community
repository must match main
repository's release version (stable or edge) Install Docker:
# apk update # apk add docker
Start Docker service:
# service docker start
Enable the Docker service to auto start on next boot:
# rc-update add docker
Run Alpine s390x container:
# docker run -ti alpine sh
Running Alpine containers on Docker on other s390x distros
Run:
# docker run -ti alpine sh