Skip to content

Instantly share code, notes, and snippets.

@DerekChia
Last active December 26, 2021 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DerekChia/96d9aa0ec8afc8aa4c1b12bed7b25d39 to your computer and use it in GitHub Desktop.
Save DerekChia/96d9aa0ec8afc8aa4c1b12bed7b25d39 to your computer and use it in GitHub Desktop.
Start a container, read and print the environment variable stored in host system
version: "3"
services:
hello_world:
container_name: ubuntu
image: ubuntu:latest
command: '/bin/sh -c "echo $$VARIABLE_ONE"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment