why `docker exec be58 /bin/bash -c ‘source /etc/profile’` fails

  Kiến thức lập trình

i have change /etc/profile to set env in dockerfile, now env needs source /etc/profile to take effect, so i use docker exec be58 /bin/bash -c 'source /etc/profile', but it fails.How can i do?

a right command to solve my problem

New contributor

诗彪谭 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT