日本語のみで絞り込む
2019/3/17 -This is how ~/.bashrc gets source for a bash shell. Therefore, we can expect ~/.bashrc to be sourced when the bash shell is used. ... This means ...
2017/2/27 -I would like to run a bash script to set some values but I am unsure how best to do this. I guess I could add the script to run to my bashrc ...
2015/11/17 -I wanted to source a file in a docker container running Ubuntu without going inside the container. I used to: docker exec -it CONTAINER_ID bash ...
2013/9/11 -I just got started playing with Docker and I was wondering what was the best way to get a custom bashrc file loaded every time in a container.
The docker exec command runs a new command in a running container. The command you specify with docker exec only runs while the container's primary process ( ...
2023/5/24 -docker compose exec skips .profile and .bashrc, so your command runs without its environment. The invocation that loads it properly.
2017/12/2 -Another option is to mount your bash config file as your ~/.bashrc ... docker run --detach -it -v `pwd`/my-bash-niceties:/root/.bashrc ...
2018/8/9 -When executing sudo docker -it exec container /bin/bash I believe the shell gets started in interactive mode. This mode will source the .bashrc ...
2020/6/5 -You need to put the “source” command in the entrypoint script. That's by far better than trying to echo out a line into your bashrc in the ...
2016/6/9 -My Dockerfile sets up a package (ros-indigo-desktop-full) which includes environment setup scripts in bash. I'd like to incorporate these ...