You need to be able to pull or build the images on the other machine. At a company you would use a private container image registry on something like GitHub, GitLab or JFrog.
Setting up a GitLab instance is a really cool homelab project that can also go on your portfolio.
Develop on your workstation, push to the registry on machine B, pull from that and run on machine B