Skip to content

Instantly share code, notes, and snippets.

@chuyskywalker
Created April 21, 2014 03:49
Show Gist options
  • Save chuyskywalker/11131716 to your computer and use it in GitHub Desktop.
Save chuyskywalker/11131716 to your computer and use it in GitHub Desktop.
quick docker contained app
# echo '{"test":123, "peso": [1,2,3]}' | docker run -i --rm --networking=false app /bin/bash -c 'cat - | php app.php'
object(stdClass)#1 (2) {
["test"]=>
int(123)
["peso"]=>
array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
int(3)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment