How can I add env host to CircleCi 2.0 Builds config



Currently I am doing this:

  • run:
    name: update host file
    command: |
    echo | sudo tee -a /etc/hosts
    cat /etc/hosts

Does the 1.0 way still work?

If so, just wondering how do I know what 1.0 features will work on 2.0?


No. You’re doing it correctly.

We are working to bridge the gap and documenting both new features and deprecated, older features.


Hey I’m getting some weird errors when trying to run locally with the circleci CLI agent

/bin/bash: sudo: command not found
Error: Exited with code 127

Any idea ?


Are you using docker? You cannot sudo inside of docker