hello hermes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sample content |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sample content |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sample content |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys | |
def kaprekar_diff(n): | |
nlist = list(str(n)) | |
if n < 1000: | |
if len(nlist) == 1: | |
nlist = nlist + list('000') | |
elif len(nlist) == 2: | |
nlist = nlist + list('00') | |
elif len(nlist) == 3: |
In this post, we are going to see how to monitor docker logs from AWS Cloudwatch logs. Docker supports different logging drivers one of which is awslogs
For this excersice, Docker container need NOT be running on EC2. We can send docker logs from anywhere to AWS.
- Ubuntu 14.04
- Docker version 1.12 and above