docker system df # Show docker disk usage, including space reclaimable by pruning
docker container prune # Remove all stopped containers
docker volume prune # Remove all unused volumes
docker image prune # Remove unused images
for (var i=1; i <= 20; i++) | |
{ | |
if (i % 15 == 0) | |
console.log("FizzBuzz"); | |
else if (i % 3 == 0) | |
console.log("Fizz"); | |
else if (i % 5 == 0) | |
console.log("Buzz"); | |
else | |
console.log(i); |
title | subtitle | author | date | source |
---|---|---|---|---|
Docker Compose Cheatsheet |
Quick reference for Docker Compose commands and config files |
Jon LaBelle |
April 7, 2019 |
# Typically I use this file as a boilerplate to configure an nginx docker container | |
# | |
# This goes in /etc/nginx/conf.d/default.conf | |
# If you are reverse proxying an API | |
upstream api { | |
server API_SERVER_GOES_HERE:port; | |
} | |
server { |
Expose the Content-Disposition
header using the Access-Control-Expose-Headers
header and set
the Content-Disposition
header as you would usually.
Access-Control-Expose-Headers: Content-Disposition
Content-Disposition: attachment; filename="example-file.csv"
---------------------------------- | |
Domain Parking for IONOS Server | |
---------------------------------- | |
- Go to domain & ssl section | |
- Add external domain | |
- Use Godaddy's name servers | |
- Add verify record on GoDaddy | |
- Add A record on GoDaddy linking to the server IP | |
* Changing DNS Records takes some time to update depending on TTL |