{"id":1188,"hash":"7540a4d22660a90f70b9b54bc1bdad83ba6c763376cd03d88133a7341216ffae","pattern":"error &quot;/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33&#39; not found&quot;","full_message":"Here is My Dockerfile:\n\nFROM ubuntu:20.04\nRUN apt-get update && apt-get upgrade -y\nRUN apt-get install libssl-dev\n\nRUN apt-get install -y -q build-essential curl\nRUN curl https://sh.rustup.rs -sSf | sh -s -- -y\nENV PATH=\"/root/.cargo/bin:${PATH}\"\n\nWORKDIR /command-agent\nCOPY . /command-agent\nRUN cargo build --release\nCOPY /command-agent/target/release/command-agent /\nEXPOSE 8080\nENTRYPOINT command-agent\n\nIts build successfully docker image but when I run that container its gives error:\n\ncommand-agent: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /command-agent/command-agent)\n\nI do not understand, How can I fix this issue ?","ecosystem":"cargo","package_name":"linux","package_version":null,"solution":"ITs works for me when i avoid /target directory and now working both version of ubuntu 20.04 and 21.10. Giving thanks to @Charles Duffy and @Herohtar for their important and useful instruction,\n\nFROM ubuntu:21.10\nRUN apt-get update && apt-get upgrade -y\nRUN apt-get install libssl-dev\n\nRUN apt-get install -y -q build-essential curl\nRUN curl https://sh.rustup.rs -sSf | sh -s -- -y\nENV PATH=\"/root/.cargo/bin:${PATH}\"\n\nWORKDIR /command-agent\nCOPY ./src/. /command-agent/src/\nCOPY .env /command-agent/\nCOPY Cargo.toml /command-agent/\nCOPY Cargo.lock /command-agent/\nRUN cargo build --release\n\nEXPOSE 8080\nENTRYPOINT /command-agent/target/release/command-agent","confidence":0.8,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/71886453/error-lib-x86-64-linux-gnu-libc-so-6-version-glibc-2-33-not-found","votes":20,"created_at":"2026-04-19T04:52:34.051311+00:00","updated_at":"2026-04-19T04:52:34.051311+00:00"}