Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docker-in-docker] - method 2 - daemon.json creation - #1023 #1101

Conversation

gauravsaini04
Copy link
Contributor

@gauravsaini04 gauravsaini04 commented Aug 20, 2024

Feature Name

  • Docker-in-Docker

Description

changelog

  • Added a new method to create the /etc/docker/daemon.json file before starting the docker daemon

src/docker-in-docker/install.sh Outdated Show resolved Hide resolved
@@ -20,6 +20,7 @@ INSTALL_DOCKER_COMPOSE_SWITCH="${INSTALLDOCKERCOMPOSESWITCH:-"true"}"
MICROSOFT_GPG_KEYS_URI="https://packages.microsoft.com/keys/microsoft.asc"
DOCKER_MOBY_ARCHIVE_VERSION_CODENAMES="bookworm buster bullseye bionic focal jammy noble"
DOCKER_LICENSED_ARCHIVE_VERSION_CODENAMES="bookworm buster bullseye bionic focal hirsute impish jammy noble"
IP6_TABLES="${IP6TABLES:-""}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we look into fixing test failures?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when I test for ip6tables -L command inside built container, getting the following output:

root@a139636130dc:/# ip6tables -L
ip6tables v1.8.4 (legacy): can't initialize ip6tables table `filter': Table does not exist (do you need to insmod?)
Perhaps ip6tables or your kernel needs to be upgraded.

src/docker-in-docker/install.sh Outdated Show resolved Hide resolved
# Create the daemon.json file with the provided value
cat <<JSON_EOF > /etc/docker/daemon.json
{
"ip6tables": $DEFAULT_IP6_TABLES
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of this, have you tried using --ip6tables=<value> same like DEFAULT_ADDRESS_POOL ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls check for the above mentioned method as a solution here

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we have #1068 open, why do we need this PR which attempts to do the same thing?

gloven64 pushed a commit to gloven64/features that referenced this pull request Aug 22, 2024
…s for lts installation (devcontainers#1021)

* [Java] - features issue devcontainers#1101 - installs -tem instead -ms for lts installation

* misc change

* misc change, by mistake needs correction

* leave a line change

* remove spaces

* bump patch version..

* changes for pr reviewed

* changes

* Update src/java/devcontainer-feature.json

Co-authored-by: Samruddhi Khandale <samruddhikhandale@github.com>

* [java] - corrected lts version finding logic in install.sh

* small change

* changes as requested..

* changes as requested

* changes as suggested - centos-7, mirrorlist no longer exists - changed to vault

* corrected condition for specific version installations..

* misc change

* corrected condition

* small change

* corrections

* change

* changes in test cases - removing /tmp before test specific test runs..

* few changes to test cases again..

* small change

* addition of --overwrite option to gradle init command

* changes as suggested on pr comments

* misc. change for correcting logic

---------

Co-authored-by: Samruddhi Khandale <samruddhikhandale@github.com>
@gauravsaini04
Copy link
Contributor Author

#1068 is an alternate method as a solution for the same issue.

@gauravsaini04 gauravsaini04 deleted the docker-in-docker_daemon_creation_#1023 branch September 10, 2024 04:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants