https://prefect.io logo
r

Robert Kowalski

02/11/2022, 2:28 PM
Hi, It is possible to fix MAC address when docker storage is using ? Docker run command have
Copy code
docker run --mac-address="70:ca:9b:ce:67:ae" IMAGE
So I want set constant mac address when define docker storage as:
Copy code
storage = Docker(
    env_vars={"PYTHONPATH": "$PYTHONPATH:/pipeline"},
    files={f'{parent_dir}': '/pipeline'},
    image_tag=os.environ.get('IMAGE_TAG'),
    image_name=flow_name,
    stored_as_script=True,
    path='/pipeline/flow.py',
    extra_dockerfile_commands=[]
)
Someone has tried to achieve something similar ?
k

Kevin Kho

02/11/2022, 2:35 PM
There actually doesn’t look like support for this because you’d need it in the
DockerRun
and the Docker run calls this and there should be a line take takes in the mac address for that call. Would you like to make an issue/PR for it?
And then you’d need
DockerRun
to accept it and propagate it to the agent
create_container
r

Robert Kowalski

02/11/2022, 2:51 PM
ok, i see why it is not possible 😞 Yes i will create an issue , thanks for answer.
3 Views