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
vim /lib/systemd/system/docker.service
ExecStart=/usr/bin/dockerd -H tcp:// -H fd://
sudo su -
# reload docker configuration
systemctl daemon-reload
# start docker
systemctl start docker.service
ssh-copy-id <user>@
export DOCKER_HOST=ssh://
echo 'export DOCKER_HOST=ssh://' >> ~/.zshrc 
## or, case you use bash
echo 'export DOCKER_HOST=ssh://' >> ~/.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