Dockworkers at West Coast ports have reached a tentative contract agreement to end their labor dispute, a spokesman for the Pacific Maritime Association said Friday.