DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
get docker container version from inside container
cat /proc/self/cgroup | grep -o -e "docker-.*.scope" | head -n 1 | sed "s/docker-(.*).scope/1/"
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#docker
#container
#version
#container
ADD COMMENT
Topic
COMMENT
Name
2+1 =
Submit