S390x/Docker: Difference between revisions

From Alpine Linux
(Created page with "== Running Alpine containers on Docker on Alpine s390x == After [https://wiki.alpinelinux.org/wiki/S390x installing] Alpine on s390x, Docker needs to be installed first by ad...")
 
m (Use cmd and apk templates.)
 
(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 [https://wiki.alpinelinux.org/wiki/S390x installing] Alpine on s390x, Docker needs to be installed first by adding <code>community</code> respository:
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:


<code> # apk update </code>
{{cmd|# apk update
 
&num; apk add {{pkg|docker|arch=s390x}}}}
<code> # apk add docker </code>


Start Docker service:
Start Docker service:


<code> # service docker start </code>
{{cmd|# service docker start}}


Allow Docker service to auto start on next boot:
Enable the Docker service to auto start on next boot:


<code> # rc-update add docker </code>
{{cmd|# rc-update add docker}}


Run Alpine s390x container:
Run Alpine s390x container:


<code> # docker run -ti alpine sh </code>
{{cmd|# docker run -ti alpine sh}}


== Running Alpine containers on Docker on other s390x distros ==


Run:


== Running Alpine containers on Docker other on s390x distros ==
{{cmd|# docker run -ti alpine sh}}


Run:


<code> # docker run -ti alpine sh </code>
[[category:IBM]]

Latest revision as of 21:57, 9 January 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