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

[BUG] Create Docker container with a custom MAC address #66882

Open
hatamiarash7 opened this issue Sep 12, 2024 · 2 comments
Open

[BUG] Create Docker container with a custom MAC address #66882

hatamiarash7 opened this issue Sep 12, 2024 · 2 comments
Labels
Bug broken, incorrect, or confusing behavior needs-triage

Comments

@hatamiarash7
Copy link

Description
We can't create a Docker container with a custom MAC address due to the docker package problem.

Setup

  • [ x ] on-prem machine
  • [ x ] used bootstrap to install

Steps to Reproduce the behavior

  • Try to create a docker container with the mac_address option.
  • The created container does not have any Network.host.MacAddress value.

Expected behavior

Create Docker container

Screenshots

image

Versions Report

salt --versions-report
Salt Version:
          Salt: 3006.5

Python Version:
        Python: 3.9.2 (default, Feb 28 2021, 17:03:44)

Dependency Versions:
          cffi: 1.16.0
      cherrypy: Not Installed
      dateutil: 2.8.1
     docker-py: 7.1.0
         gitdb: Not Installed
     gitpython: Not Installed
        Jinja2: 3.1.3
       libgit2: Not Installed
  looseversion: 1.3.0
      M2Crypto: Not Installed
          Mako: Not Installed
       msgpack: 1.0.7
  msgpack-pure: Not Installed
  mysql-python: Not Installed
     packaging: 23.2
     pycparser: 2.21
      pycrypto: Not Installed
  pycryptodome: 3.20.0
        pygit2: Not Installed
  python-gnupg: Not Installed
        PyYAML: 6.0.1
         PyZMQ: 25.1.2
        relenv: Not Installed
         smmap: Not Installed
       timelib: Not Installed
       Tornado: 4.5.3
           ZMQ: 4.3.4

System Versions:
          dist: debian 11.11 bullseye
        locale: utf-8
       machine: x86_64
       release: 5.10.0-30-amd64
        system: Linux
       version: Debian GNU/Linux 11.11 bullseye

Additional context

I think there is a problem with the create_host_config function in the docker-py package as I mentioned here. There isn't any mac_address option for this function, therefore we'll see a warning:

[WARNING ] The following arguments were ignored because they are not recognized by docker-py: ['mac_address']
@hatamiarash7 hatamiarash7 added Bug broken, incorrect, or confusing behavior needs-triage labels Sep 12, 2024
Copy link

welcome bot commented Sep 12, 2024

Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
Please be sure to review our Code of Conduct. Also, check out some of our community resources including:

There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar.
If you have additional questions, email us at [email protected]. We’re glad you’ve joined our community and look forward to doing awesome things with you!

@Kranium2002
Copy link

Hi, I would like to work on this issue. Could you maybe assign it to me and guide me to solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior needs-triage
Projects
None yet
Development

No branches or pull requests

2 participants