I'm writing a Dockerfile to set up my customized WordPress environment. I'm starting with ubuntu:latest and would like to add some repositories dynamically, by setting an ENV variable to the codename of the current Ubuntu version. How can I do this, or is there a better way to achieve this?
相关问题
- Docker task in Azure devops won't accept "$(pw
- Why doesn't php sleep work in the windows-subs
- Unable to run mariadb when mount volume
- Unspecified error (0x80004005) while running a Doc
- Installing Pydev for Eclipse throws error
Start your container like this:
docker run -e VAR=value -e ANOTHER_VAR=another_value ...
. VAR and ANOTHER_VAR will be available in the container's environment.