Sipeed Lichee Book 4A
Debian customized by SiPeed
debian@lpi4a1a81:~$ uname -a
Linux lpi4a1a81 5.10.113-zzz-sipeed-20240531+ #13 SMP PREEMPT Fri May 31 13:47:57 HKT 2024 riscv64 GNU/Linux
debian@lpi4a1a81:~$ cat /etc/debian_version
trixie/sid
debian@lpi4a1a81:~$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux trixie/sid"
NAME="Debian GNU/Linux"
VERSION_CODENAME=trixie
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
v5.3.0-rc2 (Self build)
debian@lpi4a1a81:~$ podman version
Client: Podman Engine
Version: 5.3.0-rc2
API Version: 5.3.0-rc2
Go Version: go1.22.6
Git Commit: ffad01fbc8c561b4de77263adc740ec0601e14b0
Built: Mon Nov 4 19:26:46 2024
OS/Arch: linux/riscv64
debian@lpi4a1a81:~$ podman info --runtime /usr/local/bin/crun
host:
arch: riscv64
buildahVersion: 1.38.0-dev
cgroupControllers:
- cpu
- memory
- pids
cgroupManager: systemd
cgroupVersion: v2
conmon:
package: conmon_2.1.6+ds1-1_riscv64
path: /usr/bin/conmon
version: 'conmon version 2.1.6, commit: unknown'
cpuUtilization:
idlePercent: 97.65
systemPercent: 0.31
userPercent: 2.05
cpus: 4
databaseBackend: boltdb
distribution:
codename: trixie
distribution: debian
version: unknown
eventLogger: journald
freeLocks: 2048
hostname: lpi4a1a81
idMappings:
gidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 100000
size: 65536
uidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 100000
size: 65536
kernel: 5.10.113-zzz-sipeed-20240531+
linkmode: dynamic
logDriver: journald
memFree: 9487638528
memTotal: 16539172864
networkBackend: netavark
networkBackendInfo:
backend: netavark
dns:
package: Unknown
path: /usr/local/libexec/podman/aardvark-dns
version: aardvark-dns 1.14.0-dev
package: Unknown
path: /usr/local/libexec/podman/netavark
version: netavark 1.14.0-dev
ociRuntime:
name: /usr/local/bin/crun
package: Unknown
path: /usr/local/bin/crun
version: |-
crun version 1.18.2.0.0.0.1-0183
commit: 01830cb038fe970fbd86856fe746fbea0eabfe28
rundir: /run/user/1000/crun
spec: 1.0.0
+SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +YAJL
os: linux
pasta:
executable: /usr/local/bin/pasta
package: Unknown
version: |
pasta 2024_10_30.ee7d0b6
Copyright Red Hat
GNU General Public License, version 2 or later
<https://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
remoteSocket:
exists: true
path: /run/user/1000/podman/podman.sock
rootlessNetworkCmd: pasta
security:
apparmorEnabled: false
capabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT
rootless: true
seccompEnabled: true
seccompProfilePath: /usr/share/containers/seccomp.json
selinuxEnabled: false
serviceIsRemote: false
slirp4netns:
executable: /usr/bin/slirp4netns
package: slirp4netns_1.2.0-1+b1_riscv64
version: |-
slirp4netns version 1.2.0
commit: 656041d45cfca7a4176f6b7eed9e4fe6c11e8383
libslirp: 4.7.0
SLIRP_CONFIG_VERSION_MAX: 4
libseccomp: 2.5.5
swapFree: 4294963200
swapTotal: 4294963200
uptime: 52h 12m 9.00s (Approximately 2.17 days)
variant: ""
plugins:
authorization: null
log:
- k8s-file
- none
- passthrough
- journald
network:
- bridge
- macvlan
- ipvlan
volume:
- local
registries: {}
store:
configFile: /home/debian/.config/containers/storage.conf
containerStore:
number: 0
paused: 0
running: 0
stopped: 0
graphDriverName: vfs
graphOptions: {}
graphRoot: /home/debian/.local/share/containers/storage
graphRootAllocated: 118267756544
graphRootUsed: 13390626816
graphStatus: {}
imageCopyTmpDir: /var/tmp
imageStore:
number: 12
runRoot: /run/user/1000/containers
transientStore: false
volumePath: /home/debian/.local/share/containers/storage/volumes
version:
APIVersion: 5.3.0-rc2
Built: 1730719606
BuiltTime: Mon Nov 4 19:26:46 2024
GitCommit: ffad01fbc8c561b4de77263adc740ec0601e14b0
GoVersion: go1.22.6
Os: linux
OsArch: linux/riscv64
Version: 5.3.0-rc2
https://fedoraproject.org/wiki/QA:Testcase_podman_images
debian@lpi4a1a81:~$ podman pull fedora:latest
Resolved "fedora" as an alias (/etc/containers/registries.conf.d/shortnames.conf)
Trying to pull registry.fedoraproject.org/fedora:latest...
Error: choosing an image from manifest list docker://registry.fedoraproject.org/fedora:latest: no image found in image index for architecture "riscv64", variant "", OS "linux"
debian@lpi4a1a81:~$ podman pull debian:sid
Resolved "debian" as an alias (/etc/containers/registries.conf.d/shortnames.conf)
Trying to pull docker.io/library/debian:sid...
Getting image source signatures
Copying blob 29cf887cb660 done |
Copying config 6f004f5b42 done |
Writing manifest to image destination
6f004f5b42dafef11d7b5694bf5ecc97840dcbf5bc66072d38233f7e9893aee1
debian@lpi4a1a81:~$ podman image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
docker.io/library/debian sid 6f004f5b42da 2 weeks ago 115 MB
https://fedoraproject.org/wiki/QA:Testcase_podman_container
debian@lpi4a1a81:~$ podman run --runtime /usr/local/bin/crun --rm -it debian:sid bash
root@0fa464515717:/# cat /proc/1/cmdline; echo
bash
root@0fa464515717:/# exit
exit
debian@lpi4a1a81:~$ podman ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
debian@lpi4a1a81:~$
https://fedoraproject.org/wiki/QA:Testcase_podman_list_container
debian@lpi4a1a81:~$ podman run --runtime /usr/local/bin/crun -d -p 8080:80 docker.io/riscv64/httpd:alpine3.20
5c603bfffe8e4f36aad8c693df5bd88f11ba1b373d63c834c609f2d9963583bd
debian@lpi4a1a81:~$ podman ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5c603bfffe8e docker.io/riscv64/httpd:alpine3.20 httpd-foreground 11 seconds ago Up 11 seconds 0.0.0.0:8080->80/tcp musing_goodall
debian@lpi4a1a81:~$ podman ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
fd6de0768ca6 docker.io/riscv64/httpd:alpine3.20 httpd-foreground 29 seconds ago Created 0.0.0.0:8080->80/tcp distracted_liskov
5c603bfffe8e docker.io/riscv64/httpd:alpine3.20 httpd-foreground 19 seconds ago Up 19 seconds 0.0.0.0:8080->80/tcp musing_goodall
https://fedoraproject.org/wiki/QA:Testcase_podman_remove_container
debian@lpi4a1a81:~$ podman ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5c603bfffe8e docker.io/riscv64/httpd:alpine3.20 httpd-foreground About a minute ago Up About a minute 0.0.0.0:8080->80/tcp musing_goodall
debian@lpi4a1a81:~$ podman stop 5c603bfffe8e
5c603bfffe8e
debian@lpi4a1a81:~$ podman ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
debian@lpi4a1a81:~$ podman ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
fd6de0768ca6 docker.io/riscv64/httpd:alpine3.20 httpd-foreground 2 minutes ago Created 0.0.0.0:8080->80/tcp distracted_liskov
5c603bfffe8e docker.io/riscv64/httpd:alpine3.20 httpd-foreground About a minute ago Exited (0) 6 seconds ago 0.0.0.0:8080->80/tcp musing_goodall
debian@lpi4a1a81:~$ podman rm 5c603bfffe8e
5c603bfffe8e
debian@lpi4a1a81:~$ podman rm -a
fd6de0768ca6638b94caf1d459a57462632c750ae9e8fc364222a9614871a16d
debian@lpi4a1a81:~$ podman ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
https://fedoraproject.org/wiki/QA:Testcase_podman_inspect_container
debian@lpi4a1a81:~$ podman run --runtime /usr/local/bin/crun --name httpd -d -p 8080:80 docker.io/riscv64/httpd:alpine3.20
2edb49ce894e8f702353c965233cc89fedc360f3166936dd26e5db4822fff242
debian@lpi4a1a81:~$ podman ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2edb49ce894e docker.io/riscv64/httpd:alpine3.20 httpd-foreground 3 seconds ago Up 4 seconds 0.0.0.0:8080->80/tcp httpd
debian@lpi4a1a81:~$ podman inspect httpd
[
{
"Id": "2edb49ce894e8f702353c965233cc89fedc360f3166936dd26e5db4822fff242",
"Created": "2024-11-04T22:06:06.449148349+08:00",
"Path": "httpd-foreground",
"Args": [
"httpd-foreground"
],
"State": {
"OciVersion": "1.2.0",
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 56313,
"ConmonPid": 56311,
"ExitCode": 0,
"Error": "",
"StartedAt": "2024-11-04T22:06:06.72127947+08:00",
"FinishedAt": "0001-01-01T00:00:00Z",
"CgroupPath": "/user.slice/user-1000.slice/[email protected]/user.slice/libpod-2edb49ce894e8f702353c965233cc89fedc360f3166936dd26e5db4822fff242.scope",
"CheckpointedAt": "0001-01-01T00:00:00Z",
"RestoredAt": "0001-01-01T00:00:00Z"
},
"Image": "f856d4c1c21076c31875e9f0aeabf3e8f7f23405814ff3f3833b4759e86ec782",
"ImageDigest": "sha256:34ad66b08a9c323ceac72248844c43fb24e957db0aa92aa21cf2f3b86cbda898",
"ImageName": "docker.io/riscv64/httpd:alpine3.20",
"Rootfs": "",
"Pod": "",
"ResolvConfPath": "/run/user/1000/containers/overlay-containers/2edb49ce894e8f702353c965233cc89fedc360f3166936dd26e5db4822fff242/userdata/resolv.conf",
"HostnamePath": "/run/user/1000/containers/overlay-containers/2edb49ce894e8f702353c965233cc89fedc360f3166936dd26e5db4822fff242/userdata/hostname",
"HostsPath": "/run/user/1000/containers/overlay-containers/2edb49ce894e8f702353c965233cc89fedc360f3166936dd26e5db4822fff242/userdata/hosts",
"StaticDir": "/home/debian/.local/share/containers/storage/overlay-containers/2edb49ce894e8f702353c965233cc89fedc360f3166936dd26e5db4822fff242/userdata",
"OCIConfigPath": "/home/debian/.local/share/containers/storage/overlay-containers/2edb49ce894e8f702353c965233cc89fedc360f3166936dd26e5db4822fff242/userdata/config.json",
"OCIRuntime": "/usr/local/bin/crun",
"ConmonPidFile": "/run/user/1000/containers/overlay-containers/2edb49ce894e8f702353c965233cc89fedc360f3166936dd26e5db4822fff242/userdata/conmon.pid",
"PidFile": "/run/user/1000/containers/overlay-containers/2edb49ce894e8f702353c965233cc89fedc360f3166936dd26e5db4822fff242/userdata/pidfile",
"Name": "httpd",
"RestartCount": 0,
"Driver": "overlay",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "",
"EffectiveCaps": [
"CAP_CHOWN",
"CAP_DAC_OVERRIDE",
"CAP_FOWNER",
"CAP_FSETID",
"CAP_KILL",
"CAP_NET_BIND_SERVICE",
"CAP_SETFCAP",
"CAP_SETGID",
"CAP_SETPCAP",
"CAP_SETUID",
"CAP_SYS_CHROOT"
],
"BoundingCaps": [
"CAP_CHOWN",
"CAP_DAC_OVERRIDE",
"CAP_FOWNER",
"CAP_FSETID",
"CAP_KILL",
"CAP_NET_BIND_SERVICE",
"CAP_SETFCAP",
"CAP_SETGID",
"CAP_SETPCAP",
"CAP_SETUID",
"CAP_SYS_CHROOT"
],
"ExecIDs": [],
"GraphDriver": {
"Name": "overlay",
"Data": {
"LowerDir": "/home/debian/.local/share/containers/storage/overlay/8e8ad108e92cc972d22c4889c6973da55652461161452d1b6e6f0e79067101b1/diff:/home/debian/.local/share/containers/storage/overlay/7857820f407f97f3b248e05dbac1d49f24e65554c2ec2b38b629c1800b16e3de/diff:/home/debian/.local/share/containers/storage/overlay/07324856e05bdbdd3fe905c05e2c32fab0508b12bea8e903382e49ea7ebc78a5/diff:/home/debian/.local/share/containers/storage/overlay/902eb0110cab680043afa221996782fa388cf62edd9a0717e612442f6e4cee73/diff:/home/debian/.local/share/containers/storage/overlay/2071493c4e36f401c448da4e2dcf445644922a221635d8bbbec57b724fa48ee6/diff:/home/debian/.local/share/containers/storage/overlay/9fb45c45f1a5dffe8c8c076543ab16b054c837af1ce13836d0ab4ae3dd9f8ae6/diff:/home/debian/.local/share/containers/storage/overlay/3fd4750fd687808b29b934be8857b84a82c5d2f4a644fc7262148b9389292ace/diff",
"MergedDir": "/home/debian/.local/share/containers/storage/overlay/b8fe9e517251015c264311a64ace63d1913a5070f907ba59a67b2f2f85720b2a/merged",
"UpperDir": "/home/debian/.local/share/containers/storage/overlay/b8fe9e517251015c264311a64ace63d1913a5070f907ba59a67b2f2f85720b2a/diff",
"WorkDir": "/home/debian/.local/share/containers/storage/overlay/b8fe9e517251015c264311a64ace63d1913a5070f907ba59a67b2f2f85720b2a/work"
}
},
"Mounts": [],
"Dependencies": [],
"NetworkSettings": {
"EndpointID": "",
"Gateway": "",
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "",
"Bridge": "",
"SandboxID": "",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {
"80/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "8080"
}
]
},
"SandboxKey": "/run/user/1000/netns/netns-304b8f37-ca69-d158-0ec7-de29c1a781df"
},
"Namespace": "",
"IsInfra": false,
"IsService": false,
"KubeExitCodePropagation": "invalid",
"lockNumber": 0,
"Config": {
"Hostname": "2edb49ce894e",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"HTTPD_VERSION=2.4.62",
"HTTPD_SHA256=674188e7bf44ced82da8db522da946849e22080d73d16c93f7f4df89e25729ec",
"HTTPD_PATCHES=",
"PATH=/usr/local/apache2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"container=podman",
"HTTPD_PREFIX=/usr/local/apache2",
"HOME=/root",
"HOSTNAME=2edb49ce894e"
],
"Cmd": [
"httpd-foreground"
],
"Image": "docker.io/riscv64/httpd:alpine3.20",
"Volumes": null,
"WorkingDir": "/usr/local/apache2",
"Entrypoint": null,
"OnBuild": null,
"Labels": null,
"Annotations": {
"io.container.manager": "libpod",
"org.opencontainers.image.stopSignal": "28",
"org.systemd.property.KillSignal": "28",
"org.systemd.property.TimeoutStopUSec": "uint64 10000000"
},
"StopSignal": "SIGWINCH",
"HealthcheckOnFailureAction": "none",
"HealthLogDestination": "local",
"HealthcheckMaxLogCount": 5,
"HealthcheckMaxLogSize": 500,
"CreateCommand": [
"podman",
"run",
"--runtime",
"/usr/local/bin/crun",
"--name",
"httpd",
"-d",
"-p",
"8080:80",
"docker.io/riscv64/httpd:alpine3.20"
],
"Umask": "0022",
"Timeout": 0,
"StopTimeout": 10,
"Passwd": true,
"sdNotifyMode": "container",
"ExposedPorts": {
"80/tcp": {}
}
},
"HostConfig": {
"Binds": [],
"CgroupManager": "systemd",
"CgroupMode": "private",
"ContainerIDFile": "",
"LogConfig": {
"Type": "journald",
"Config": null,
"Path": "",
"Tag": "",
"Size": "0B"
},
"NetworkMode": "pasta",
"PortBindings": {
"80/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "8080"
}
]
},
"RestartPolicy": {
"Name": "no",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"AutoRemoveImage": false,
"Annotations": {
"io.container.manager": "libpod",
"org.opencontainers.image.stopSignal": "28",
"org.systemd.property.KillSignal": "28",
"org.systemd.property.TimeoutStopUSec": "uint64 10000000"
},
"VolumeDriver": "",
"VolumesFrom": null,
"CapAdd": [],
"CapDrop": [],
"Dns": [],
"DnsOptions": [],
"DnsSearch": [],
"ExtraHosts": [],
"GroupAdd": [],
"IpcMode": "shareable",
"Cgroup": "",
"Cgroups": "default",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "private",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": [],
"Tmpfs": {},
"UTSMode": "private",
"UsernsMode": "",
"ShmSize": 65536000,
"Runtime": "oci",
"ConsoleSize": [
0,
0
],
"Isolation": "",
"CpuShares": 0,
"Memory": 0,
"NanoCpus": 0,
"CgroupParent": "user.slice",
"BlkioWeight": 0,
"BlkioWeightDevice": null,
"BlkioDeviceReadBps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteIOps": null,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": [],
"DiskQuota": 0,
"KernelMemory": 0,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": 0,
"OomKillDisable": false,
"PidsLimit": 2048,
"Ulimits": [
{
"Name": "RLIMIT_NOFILE",
"Soft": 1048576,
"Hard": 1048576
},
{
"Name": "RLIMIT_NPROC",
"Soft": 63066,
"Hard": 63066
}
],
"CpuCount": 0,
"CpuPercent": 0,
"IOMaximumIOps": 0,
"IOMaximumBandwidth": 0,
"CgroupConf": null
}
}
]
debian@lpi4a1a81:~$
https://fedoraproject.org/wiki/QA:Testcase_podman_save_load
debian@lpi4a1a81:~$ podman image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
docker.io/library/debian sid 6f004f5b42da 2 weeks ago 115 MB
docker.io/riscv64/httpd alpine3.20 f856d4c1c210 3 months ago 61.5 MB
debian@lpi4a1a81:~$ podman save -o httpd.tar docker.io/riscv64/httpd:alpine3.20
Copying blob 3fd4750fd687 done |
Copying blob 2d01e6d56b6d done |
Copying blob 94df483e170a done |
Copying blob 5f70bf18a086 done |
Copying blob 20222a3a2220 done |
Copying blob 44830af2468c done |
Copying blob 880f33467eb8 done |
Copying config f856d4c1c2 done |
Writing manifest to image destination
debian@lpi4a1a81:~$ podman rmi -a
Untagged: docker.io/library/debian:sid
Untagged: docker.io/riscv64/httpd:alpine3.20
Deleted: 6f004f5b42dafef11d7b5694bf5ecc97840dcbf5bc66072d38233f7e9893aee1
Deleted: f856d4c1c21076c31875e9f0aeabf3e8f7f23405814ff3f3833b4759e86ec782
debian@lpi4a1a81:~$ podman load -i httpd.tar
Getting image source signatures
Copying blob 44830af2468c done |
Copying blob 20222a3a2220 done |
Copying blob 94df483e170a done |
Copying blob 3fd4750fd687 done |
Copying blob 5f70bf18a086 done |
Copying blob 2d01e6d56b6d done |
Copying blob 880f33467eb8 done |
Copying config f856d4c1c2 done |
Writing manifest to image destination
Loaded image: docker.io/riscv64/httpd:alpine3.20
debian@lpi4a1a81:~$ podman image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
docker.io/riscv64/httpd alpine3.20 f856d4c1c210 3 months ago 61.5 MB
debian@lpi4a1a81:~$