Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker image errors #221

Closed
v0l opened this issue Jun 29, 2020 · 7 comments
Closed

Docker image errors #221

v0l opened this issue Jun 29, 2020 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@v0l
Copy link

v0l commented Jun 29, 2020

Hi,

Trying to run v1.3.0 in docker and getting an error:

Command:

docker run -p 1491:1491 -v /usr/local/sonic/config.cfg:/etc/sonic.cfg -v /usr/local/sonic/store/:/var/lib/sonic/store/ --rm valeriansaliou/sonic:v1.3.0
sonic: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.11' not found (required by sonic)

Checking env in the image:

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOSTNAME=3c32b11eb74b
HOME=/root

Seems like maybe lib64 should be added to PATH as suggested here: https://stackoverflow.com/questions/20357033/usr-lib-x86-64-linux-gnu-libstdc-so-6-version-cxxabi-1-3-8-not-found

@v0l v0l changed the title Docker image missing deps Docker image errors Jun 29, 2020
@valeriansaliou
Copy link
Owner

Can you test whether Docker image v1.2.4 works?

@valeriansaliou valeriansaliou added the bug Something isn't working label Jun 29, 2020
@valeriansaliou valeriansaliou self-assigned this Jun 29, 2020
@v0l
Copy link
Author

v0l commented Jun 29, 2020

Same error, could be something wrong with my machine?

Its pretty much a clean install of Ubuntu Server 20.04

Distributor ID:	Ubuntu
Description:	Ubuntu 20.04 LTS
Release:	20.04
Codename:	focal
Docker version 19.03.8, build afacb8b7f0

@valeriansaliou
Copy link
Owner

valeriansaliou commented Jun 29, 2020

No, I don't think so. Looks like a dependency added at build time is not available at runtime. Can you try modifying the Dockerfile to add lib64 (and others?), build it via docker build . and try running your image?

@v0l
Copy link
Author

v0l commented Jun 29, 2020

Its building on buster not stretch i just switched the image to debian:buster-slim and it worked fine.

If you want to stick with stretch i think you can use rustlang/rust:nightly-stretch-slim

@valeriansaliou
Copy link
Owner

Thanks, I'm rebuilding v1.3.0 on the fixed Debian image. I updated my local build nightly slim image, which I did not know updated its dependency on Debian latest, from stretch; and indeed dynamically-linked components may have changed.

@valeriansaliou
Copy link
Owner

@v0l
Copy link
Author

v0l commented Jun 29, 2020

Yep all good now, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants