- Docker remote api with 2375
- macOs or Linux
- Docker api >= v1.24
Run this docker command before.
docker run -p 2375:2375 -v /var/run/docker.sock:/var/run/docker.sock -d -e PORT=2375 shipyard/docker-proxy
- Set the following flag in the
daemon.json
file:
{
"hosts": ["tcp://127.0.0.1:2375", "unix:///var/run/docker.sock"]
}
- Restart Docker
$ sudo systemctl restart docker
git clone https://github.com/qfdk/EasyDockerWeb.git
cd EasyDockerWeb
npm i
npm start
docker build -t coucou .
docker run -it -p 3000:3000 -v /var/run:/var/run coucou bash
# http://localhost:3000 enjory ;)