docker pull httpdPublic requests port 8080 → port 80 on the Container
Map /home/user/website/ → /usr/local/apache2/htdocs/
docker run -dit --name webserver -p 8080:80 -v /home/user/website/:/usr/local/apache2/htdocs/ httpd:latestdocker pull httpdPublic requests port 8080 → port 80 on the Container
Map /home/user/website/ → /usr/local/apache2/htdocs/
docker run -dit --name webserver -p 8080:80 -v /home/user/website/:/usr/local/apache2/htdocs/ httpd:latestThis is how to connect to another host with your docker client, without modifying your local Docker installation or when you don't have a local Docker installation.
First be sure to enable the Docker Remote API on the remote host.
This can easily be done with a container.
For HTTP connection use jarkt/docker-remote-api.
| sudo mount /dev/sdXXX /mnt | |
| sudo mount /dev/sdXX /mnt/boot/efi | |
| for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done | |
| sudo chroot /mnt | |
| grub-install /dev/sdX | |
| update-grub | |
| # Note : sdX = disk | sdXX = efi partition | sdXXX = system partition | |
| # 'Fixed' by replacing /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi with /boot/efi/EFI/arch/grubx64.efi |
| # ----------------------------- | |
| # PostgreSQL configuration file | |
| # ----------------------------- | |
| # | |
| # This file consists of lines of the form: | |
| # | |
| # name = value | |
| # | |
| # (The "=" is optional.) Whitespace may be used. Comments are introduced with | |
| # "#" anywhere on a line. The complete list of parameter names and allowed |
This file outlines the steps taken to install and run Docker on Windows (WSL2) without Docker Desktop. To mimic the existing experience, those steps will guide you through creating a separate Linux distribution to host the Docker engine.
| Distribution | Location |
|---|
| { | |
| "image": "mcr.microsoft.com/vscode/devcontainers/base:ubuntu-20.04", | |
| "settings": { | |
| "[typescript]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode", | |
| "editor.formatOnSave": true | |
| }, | |
| "[json]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode", | |
| "editor.formatOnSave": true |
| #!/bin/bash | |
| # This script will help you setup Docker for TLS authentication. | |
| # Run it passing in the arguement for the FQDN of your docker server | |
| # | |
| # For example: | |
| # ./create-docker-tls.sh myhost.docker.com | |
| # | |
| # The script will also create a profile.d (if it exists) entry | |
| # which configures your docker client to use TLS | |
| # |
| { | |
| "dependencies": { | |
| "Microsoft.AspNetCore.Mvc": "1.0.0", | |
| "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0", | |
| "Microsoft.AspNetCore.Server.Kestrel": "1.0.0", | |
| "Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0", | |
| "Microsoft.Extensions.Configuration.FileExtensions": "1.0.0", | |
| "Microsoft.Extensions.Configuration.Json": "1.0.0", | |
| "Microsoft.Extensions.Logging": "1.0.0", | |
| "Microsoft.Extensions.Logging.Console": "1.0.0", |
| # Configure VSCode-remote SSH for Ubuntu and Windows | |
| # Setup user account with SSH access on Ubuntu | |
| sudo -s | |
| adduser username | |
| sudo usermod -aG sudo username | |
| sudo ufw app list | |
| sudo ufw allow OpenSSH | |
| sudo ufw enable # Confirm with 'y' | |
| sudo ufw status |
There are numerous reasons you may need to use multiple SSH keys for accessing GitHub and BitBucket
You may use the same computer for work and personal development and need to separate your work.
When acting as a consultant, it is common to have multiple GitHub and/or BitBucket accounts depending on which client you may be working for.
You may have different projects you're working on where you would like to segregate your access.