AMDResearch / hpcfund

AMD HPC Research Fund Cloud
https://amdresearch.github.io/hpcfund/
11 stars 4 forks source link

podman usage #28

Open mjkpolo opened 2 months ago

mjkpolo commented 2 months ago

Hello,

I'm struggling to use podman, keep seeing

Error: creating build container: writing blob: adding layer with blob "sha256:560c024910bebac6b404791af28ebd48a8289303b8377d17b67ffdfe52754f2a": processing tar file(potentially insufficient UIDs or GIDs available in user namespace (requested 0:42 for /etc/gshadow): Check /etc/subuid and /etc/subgid if configured locally and run "podman system migrate": lchown /etc/gshadow: invalid argument): exit status 1

or

WARN[0000] Failed to get rootless runtime dir for DefaultAPIAddress: lstat /run/user/2069: no such file or directory
WARN[0000] RunRoot is pointing to a path (/run/user/2069/containers) which is not writable. Most likely podman will fail.
Error: creating events dirs: mkdir /run/user/2069: permission denied

Thanks!

koomie commented 2 months ago

I would suggest using apptainer for containerization instead of podman.

mjkpolo commented 2 months ago

@koomie I'm trying to use vllm, but they don't have a docker image I can pull, I need to build it, so I need to convert their docker files to apptainer files? link

(building from source without docker/podman wasn't working for me)

coleramos425 commented 2 months ago

Probably a lower priority ask, but it would be nice to have a section in HPCFund docs for "Containers on HPCFund", similar to Containers on Frontier. Some topics that may be useful to cover and/or share links to:

coleramos425 commented 2 months ago

EDIT: Oops just saw #10 covers this 😋