Container registers your dependencies and can resolve them.
Locator on the other hand uses a container to resolve services.
To be able to use a container, you have to have a reference to it.
On the other hand, the locator is usually available statically, you don't need a reference to it.
Locator is considered an antipattern just because it lets you resolve any dependency "in place" which in fact makes dependencies implicit. This means that the class client is not aware of the dependency until it shows up in the run time.