I wanted to make a simple scene where water is flowing into a bucket. I had set the domain nicely outside the obstacle i.e., the bucket and a small uv sphere as the inflow. After that when I bake it, the water doesn't even go into the bucket it just flows away from it.
The collision shape of the bucket is probably not set correctly. It needs to be set to "Mesh" and not "Cube", "Convex Hull", or any of the other options.
Seem my answer to What causes this weird collission? for a more elaborate explanation.