For unknown reasons to me when you try to run the Dockerfile containing this line, it will not work:
1
| |
After the machine is booted however you can insert the line succesfully. You can solve this by running the command below:
1
| |
This creates a new file in the sources.list.d and it gets picked up by apt-get update. Make sure the extension is .list.