Learned or Solved Something Today?

Dump it here! Let others learn from you

Write a docker hack
Showing 9 of 9 from page 1

ikrum posted in #script #snippets #docker

Safely Clean Up Docker/overlay2 Folder | Free up your local machine

Each layer in an image is a folder inside the  usr lib docker overlay2  folder. Lets learn some way to clean up identify contents of var lib docker overlay Is it safe to clean docker overlay2 ?? Docke

shihab posted in #docker #devops #tutorial

How To Install PostgreSQL With Docker

In this tutorial, we will see how we can install PostgresSQL with docker on our machine. We developers still install a database on our computers and work on it. but using Docker it takes only seconds

shihab posted in #solution #error #docker #mysql #database #snippets

Solution For "docker-entrypoint.sh: line 83: mysqld: command not found" while running mysql in docker

While I was trying to run mysql database in my local linux machine through docker it was giving me some wired error This is how I solved this My Environment OS Linux Ubuntu 20 04 Docker version 19 03

anonymous posted in #docker #devops #wordpress #snippets #tutorial

Install Wordpress In your local machine (Windows, Linux, Mac) with Docker Compose | Prepare Local Development environment in one minute

Example Docker Compose FIle For Wordpress MySQL phpmyadmin This docker compose yaml file is ready to runto use to install worldpress in your local machine in just one minute One file one minute to get

anonymous posted in #docker #devops #tutorial

Using ONBUILD to install packages

This example uses NodeJS but the same principal could apply to Composer in PHP or Python s Pip This creates a library image that is not meant to be used directly The ONBUILD commands will run when som

ikrum posted in #script #database #postgresql #docker #snippets

A bash script to take PostgreSQL database backup everyday from docker container

I have a postgres database running in docker-compose and I wanted to take a backup my database every day or in certain interval. Here is a simple bash script that I use to backup my database. Find your docker container name of your database docker p

anonymous posted in #docker #devops #snippets #beginners #go

Example Dockerfile for GoLang Applications | Docker starter for GO beginners

Example Dockerfile for running a go application inside docker container. Base Image for Golang We need a base image on which we will build our application. You can specify the version you want. In the example I used alpine version which are very lig

anonymous posted in #docker #devops #tutorial

Example Dockerfile For Multi-Stage Docker Build For A NodeJS Application

Here is an example Dockerfile for building node.js application using docker multistage builds. Steps to build a typical Node.js application using multistage docker build feature Take a light weight node image (for example node:10.15.2-alpine) Add pa

anonymous posted in #docker #shortcut #command #cheatsheet #snippets

List, Stop, remove all docker containers, images, networks and volumes | My Docker Cheat Sheet

Sometimes it's necessary to stop and remove all docker containers, images and free up some spaces. Here are few commands that might become handy to clean up your system. Removing All Unused Docker Objects Remove all stopped containers Remove all net

fb