Docker Level 1 Test

In one of the question they are asking to create docker network.
I am using below command to create network.
[tony@stapp01 ~]$ docker network create
–driver=bridge
–subnet=182.18.0.1/24
–gateway=182.18.0.1
mysql-network

It gives me below error:

Error response from daemon: invalid network config:
invalid subnet 182.18.0.1/24: it should be 182.18.0.0/24

Please help.

If you read the error message it says the subnet should be 182.18.0.0/24 not 182.18.0.1/24

1 Like

Yes, but they are asking ( in a question ) to use this subnet 182.18.0.1/24 only, if I am using 182.18.0.0/24 it system says wrong answer.

I was able to pass Level 3 Task 1 without issues:

Please paste a copy of the task and the commands you have run before submitting for a check.

It is not Task, it is in Test ( Docker Level 1 final test)
question :
image

Question : Create a new network name mysql-network, using bridge driver, allocate subnet 182.18.0.1/24 and gateway as 182.18.0.1

Command i am using :
[tony@stapp01 ~]$ docker network create
–driver=bridge
–subnet=182.18.0.1/24
–gateway=182.18.0.1
mysql-network

It gives me below error:

Error response from daemon: invalid network config:
invalid subnet 182.18.0.1/24: it should be 182.18.0.0/24

I will pass this on, as I cannot check, as I have already done the test.

yes, please pass it to relevant team. or if you have support contact details, please share it with me.

Hi @arifmeman94,

Sorry for the inconvenience. The team has fixed the issue. Please try and share the feedback.

Regards,

Thank you, but I have already cleared the test so, I think I will not be able to perform again.