docker compose rename containers code example Example: rename a running docker container $ sudo docker rename discourse_app disc_app