starlight icon indicating copy to clipboard operation
starlight copied to clipboard

Unable to start python container

Open jzh18 opened this issue 2 years ago • 0 comments

Question

Not able to start starlight-converted Python container

What kind of hardware you have?

I set up the env according to this document

I'm using Starlight v0.3.2

Steps to reproduce the problem

  1. sudo ctr pull docker.io/library/python:3.9.3
  2. sudo systemctl start starlight && sudo ctr-starlight add myproxy http cloud.cluster.local:8090
sudo ctr-starlight convert --insecure-destination --notify --profile myproxy \ 
  --platform linux/amd64 docker.io/library/python:3.9.3 cloud.cluster.local:5000/python:3.9.3-starlight
  1. sudo ctr-starlight optimizer on
  2. sudo ctr-starlight pull --profile myproxy cloud.cluster.local:5000/python:3.9.3-starlight
sudo ctr c create --snapshotter=starlight  \
--mount type=bind,source=/starlight/demo/config,destination=/entrypoint,options=rbind:rw  \
--mount type=bind,source=/starlight/demo/config/scripts,destination=/app,options=rbind:rw  \
--net-host cloud.cluster.local:5000/python:3.9.3-starlight tmp /entrypoint/entrypoint-py.sh
  1. sudo ctr t start tmp

At the step 7, I can't start the container, the error message is:

python: error while loading shared libraries: libpython3.9.so.1.0: cannot open shared object file: No such file or directory

jzh18 avatar Apr 19 '23 15:04 jzh18