Last active
October 25, 2018 19:43
-
-
Save allandequeiroz/5f420337747a054d1c00436e721c0ac7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fedora | |
RUN dnf install python-pip -y | |
RUN dnf -y install dnf-plugins-core | |
RUN dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo | |
RUN dnf config-manager --set-disabled docker-ce-test | |
RUN dnf config-manager --set-disabled docker-ce-edge | |
RUN dnf install docker-ce -y | |
RUN pip install docker-compose | |
CMD ["systemctl","start","docker"] | |
----------------------------- | |
docker build -t fedora-docker-in-docker . | |
----------------------------- | |
#!/bin/bash | |
docker run -d \ | |
--rm \ | |
--name fdid \ | |
-e=container=docker \ | |
--stop-signal=SIGRTMIN+3 \ | |
--cap-add=SYS_ADMIN \ | |
--security-opt=seccomp:unconfined \ | |
--privileged \ | |
-v /sys/fs/cgroup:/sys/fs/cgroup:ro \ | |
fedora-docker-in-docker \ | |
/sbin/init | |
docker exec -it fdid bash | |
-----------by-hand----------- | |
docker run -d --name fedora28 -e=container=docker --stop-signal=SIGRTMIN+3 --cap-add=SYS_ADMIN --security-opt=seccomp:unconfined --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro fedora /sbin/init | |
docker exec -it fedora28 bash | |
dnf install python-pip -y | |
dnf -y install dnf-plugins-core | |
dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo | |
dnf config-manager --set-disabled docker-ce-test | |
dnf config-manager --set-disabled docker-ce-edge | |
dnf install docker-ce -y | |
pip install docker-compose | |
systemctl start docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Following the result with the image,
PS.: The
--rm
param did not work.