A mounting device has a locking housing with a locking arm that pivots between an open, unlocked position, and a closed, locked position. The locking arm extending to a latch end having a latch hole. A bottom end of the dispensing container is placed within a container receiving space of the locking housing, and the locking arm is moved to the closed, locked position to engage the annular groove of the dispensing container to lock the dispensing container within the locking housing. The device further includes a magnetic locking mechanism for locking the locking arm in the closed, locked position.