Below you will find pages that utilize the taxonomy term “Docker”

Moving Docker Runtime and Storage Location

.a{fill:#fff;}.b{fill:#ffb80f;}For the Linux operating system, these steps document how to free up some space in the root volume of your operating system by moving the docker runtime location from /var/lib/docker/ to the /home volume. The runtime directory is where Docker images, containers, and volumes are stored. Stop Docker sudo systemctl stop docker # verify docker has stopped ps aux | grep -i docker | grep -v grep Configure Docker daemon We’re using a JSON configuration file to specify the runtime folder location.

WordPress from Development to Production using Docker Part II

This post continues where part one left off. Topics include mysql data migration, staging and production docker configurations with optional https. To perform these steps, you will need to either: Create the files directly on the server using nano, vim or some other command line editor. Create the files on your local machine and copy them to the server using scp. I prefer the latter method.

WordPress from Development to Production using Docker

This post will cover how to use Docker for a local WordPress development environment and how to deploy it to an Ubuntu Linux server running docker. What you will need. Docker VPS with Docker (for prod deployment) WordPress The first step is to get your local development environment set up for your WordPress site. There are quite a few ways I have setup this environment in the past.

SSL Certificate Authority for Docker and Traefik

This post documents how to get https working on your local Docker development environment using Traefik as a reverse proxy for multiple services. Step 1 - Root SSL Certificate Create a sub directory to store generated keys, certificates and related files in your home folder, for example .ssl. Using OpenSSL, generate the private key file, rootCA.key. For Windows, use Cygwin, Git Bash, PowerShell or other Unix-like CLI.

Nginx Reverse Proxy

Examples for using Jason Wilder’s Automated Nginx Reverse Proxy for Docker. This solution uses docker-compose files and Jason’s trusted reverse proxy image that contains a configuration using virtual hosts for routing Docker containers. To set this up, create these directories in a project folder: nginx-proxy, whoami and an optional third one for a node.js app named nodeapp. For the nodeapp, create a Docker image using the these instructions.

Node.js Koa Container

An example of how to create a Docker container application using Koa.js Next generation web framework for Node.js. In the project root, initialize using Yarn or npm. yarn init -y Install dependencies. yarn add koa yarn add koa-body yarn add koa-logger yarn add koa-router yarn add koa-views yarn add swig Create an app folder in the project root. In the app folder, create a folder named lib.

VPS Proof of Concept for Docker and Traefik

This is a proof of concept for a VPS that includes ConfigServer Firewall (csf), Docker, Open SSH Server and Traefik as a reverse proxy to host multiple applications on the same Docker host. The following notes document my experience while creating and configuring the VPS proof of concept local Virtual Machine with Ubuntu Server 16.04 on a Windows 10 host. Virtual Machine Since I am on my Windows 10 laptop for this, I used Hyper-V, an optional feature of Windows 10 Enterprise, Professional, or Education versions.

VPS Proof of Concept for Docker and Traefik - Page 2

CSF Docker Configuration Disable Docker daemon automatic iptable rules with an override at the ExecStart section of the main docker.service. This prevents the Docker daemon from configuring iptables. sudo nano /etc/systemd/system/multi-user.target.wants/docker.service Append --iptables=false to ExecStart=/usr/bin/dockerd -H fd://. For example, ExecStart=/usr/bin/dockerd -H fd:// --iptables=false If Docker gets an upgrade during apt-get dist-upgrade, this docker.service file may get overwritten and you will need update it to override ExecStart again.

Docker Laravel Dev Environment

This post documents building a local Laravel development environment with Docker. Included are examples for debugging Laravel’s PHP with Xdebug using the Visual Studio Code editor. Source Code available on GitHub. Install Laravel In this example, we will be using the Composer Dependency Manager for PHP to install Laravel. To check if Composer is installed globally and in your PATH, enter composer --version in the CLI, for example,

Docker Drupal Dev Environment

This post documents mounting a new Drupal Composer project as a volume in a Docker container. Features include Drush, Drupal Console, mailhog and phpMyAdmin. A Docker-sync configuration is available for OS X. Composer With the release of Drupal 8.3, using Composer to manage Drupal projects has vastly improved and is becoming a best practice. See Getting Started at getcomposer.org to install Composer. Drupal Composer Template Using Composer and the Composer template for Drupal projects to create a new Drupal site.

Docker WordPress Dev Environment

This post documents setting up local development environments with Docker using the official WordPress Docker repository as a base image. Page two includes configurations for remote PHP debugging with Xdebug and VS Code. Docker Compose Aside from making the container configuration easier to understand, Docker Compose coordinates the creation, start and stop of the containers used together in the environment. The environment has multiple sites served on various ports including at least one Wordpress site, a phpmyadmin site and mysql.

Docker WordPress Dev Environment - Page 2

Remote Debugging with Xdebug and VS Code In order to set breakpoints and step through the PHP code used in WordPress core, themes and plugins, The Xdebug PHP extension needs to be installed, configured and built into an image. IP address for the xdebug.remote_host setting is needed to configure the extension. Windows 10 Professional running Docker Version 17.03.0-ce-win1, open a command prompt and enter ipconfig. The address is listed under DockerNAT.

Docker

Docker Resources Docker Documentation. To learn what Docker is, the official Docker Overview is an excellent resource. Containers # list docker ps -a # list running docker ps --filter status=running # stop all docker stop $(docker ps -a -q) # remove all docker rm $(docker ps -a -q) # remove docker rm [CONTAINER ID] # remove associated data volumes docker rm -v [CONTAINER ID] # logs docker logs [CONTAINER ID] # bash docker exec -it [CONTAINER ID] /bin/bash # shell docker exec -it [CONTAINER ID] sh You can substitute the container name for the id.