But for this to work you need to do some adjustments to your HOST OS.
/usr/lib/systemd/system/ExecStart=/usr/bin/dockerd -H fd://.-H tcp://0.0.0.0:4243 to that line so it looks like :ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:4243systemctl dameon-reloadsystemctl restart dockerNow you are good to go and run your container
FROM centos:latest # 8
RUN dnf install 'dnf-command(config-manager)' -y
RUN dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
RUN dnf install docker-ce --nobest -y
RUN echo "export DOCKER_HOST=`/sbin/ip route|awk '/default/ { print $3 }'`:4243" | cat >> $HOME/.bashrc
Content type
Image
Digest
Size
230.1 MB
Last updated
over 6 years ago
docker pull smc181002/docker_enabled