You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I am using centos/php-72-centos7 as a base template for my Dockerfile.
When I run an interactive terminal into the container, it creates .bash_history file inside APP_DATA directory which I don't want.
I have tried changing the home directory in /etc/passwd but this does not seem to make any difference. When I run echo $HOME, it is always set to what $APP_DATA is.
I know I can override the HOME variable by setting the environment variable to the docker exec command, but I'd prefer not having to do this specifically for this image container.
Is there a way to change the HOME directory for the image during the build process or when it is run by docker-compose?
The text was updated successfully, but these errors were encountered:
Hello. I am using centos/php-72-centos7 as a base template for my Dockerfile.
When I run an interactive terminal into the container, it creates .bash_history file inside APP_DATA directory which I don't want.
I have tried changing the home directory in /etc/passwd but this does not seem to make any difference. When I run
echo $HOME
, it is always set to what $APP_DATA is.I know I can override the HOME variable by setting the environment variable to the docker exec command, but I'd prefer not having to do this specifically for this image container.
Is there a way to change the HOME directory for the image during the build process or when it is run by docker-compose?
The text was updated successfully, but these errors were encountered: