Skip to content

Unable to start python container #39

@jzh18

Description

@jzh18

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions