S390x/Docker: Difference between revisions

From Alpine Linux
(use internal wiki links)
(Renamed Category from IBM to S390x)
 
(One intermediate revision by one other user not shown)
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}}


Enable the 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 ==
== Running Alpine containers on Docker on other s390x distros ==
Line 35: Line 34:
Run:
Run:


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




[[category:IBM]]
[[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