How to set up a Docker Host

brew install docker
sudo su -
pacman -Syu
pacman -S docker, openssh
# to start services automatically:
systemctl enable sshd
systemctl enable docker
# start sshd
systemctl start sshd
exit
vim /lib/systemd/system/docker.service
ExecStart=/usr/bin/dockerd -H tcp://192.168.1.10 -H fd://
sudo su -
# reload docker configuration
systemctl daemon-reload
# start docker
systemctl start docker.service
exit
ssh-keygen
ssh-copy-id <user>@192.168.1.10
export DOCKER_HOST=ssh://192.168.1.10
echo 'export DOCKER_HOST=ssh://192.168.1.10' >> ~/.zshrc 
## or, case you use bash
echo 'export DOCKER_HOST=ssh://192.168.1.10' >> ~/.bashrc
docker ps
docker run -it -p 8080:8080 app app

System Architect

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

5 Resources for Building a WordPress Staging Site Setup

Flutter Visual Design tools for Non Developers

Speed up Dataframe Operations using Map, Filter, and Reduce

NLP-Day 3: You Better Start Improving Your Vocabulary

READ/DOWNLOAD#- Multicore and GPU Programming: An

Growth Mindset

Forms In Django

How to use MVVM, Coordinators, and RxSwift

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jorge Quitério

Jorge Quitério

System Architect

More from Medium

Resolving The Problem Of Port 5000 Already Being In Use

Just another day at Engineering

Converting CSV to Database

Containerize Your Development Environment With Visual Studio Code