Learn how to use Infisical to inject environment variables into a Docker container.
Generate a machine identity
Obtain an access token for the machine identity
infisical token renew
command can be used to renew the token if needed.Feed the access token to the docker container
INFISICAL_TOKEN
manually. To automate this process, you can use a shell script as your starting command.Generate a Machine Identity
Create the Shell Script
Note: The access token has a limited lifespan. Use the infisical token renew CLI command to renew it when necessary.
Update Your Dockerfile