Pretty much anything that you can do with images or containers with Docker, you can do with Compose. In your case, since you can push your custom image to your Docker Hub registry using docker image push
(or docker push
) command, you can do the same with Compose.
As for Compose, you use docker-compose push
(no surprises there – consistency between APIs/CLIs).
Tip: when in doubt, use --help
. It's the best way (next to Google) to explore CLI. If not sure what are available commands/options for Compose, just type docker-compose --help
. If you want to see available options for push
command (for example), use docker-compose push --help
.