• Home
  • About me
  • Categories
  • Tags
JA/EN

C++

1 post

#docker #C++

Adding Environment Variables for Arbitrary Users in Docker

Goal When building a Docker image, we often install various C++ libraries. However, when working inside the container as a non-root user, header files may not be automatically included in the default search paths, which can be inconvenient. We want to configure this neatly during the image build (inside the Dockerfile). However, the ENV directive only sets environment variables directly or for the root context, and might not always propagate properly to custom non-root users added later in certain shell sessions. ...

Author Yukara Ikemiya
Page 1 of 1 
Yukara Ikemiya © 2019--2024
Hugo port of Casper 2.1.7 by EM
Latest Posts Twitter Github LinkedIn