Darnell Dockett has agreed to sign with the San Francisco 49ers.

Dockett signed a two-year, $7.5 million contract with the 49ers with $4 million being paid in the first season and $2 million guaranteed.

Dockett missed all of 2014 after tearing his ACL during training camp.

Dockett was released by the Arizona Cardinals to free up $6.8 million in cap space.