To avoid double taxation, you have two options:
-Claim the FEIE (Foreign Earned Income Exclusion). This allows you exclude foreign earned income from US taxes, up to a certain amount (~100K USD).
-Use FTC (Foreign Tax Credit). As you mentioned, you can get a credit for every tax dollar you paid...