# Docker bind code to container

**URL:** <https://forums.docker.com/t/docker-bind-code-to-container/122560>\
**Category:** General\
**Created:** [March 23, 2022, 4:53pm UTC](https://forums.docker.com/t/docker-bind-code-to-container/122560 "2022-03-23T16:53:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nadadocker](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/nadadocker/32/32656_2.png) [@nadadocker](https://forums.docker.com/u/nadadocker)\
**Post date:** [March 23, 2022, 4:53pm UTC](https://forums.docker.com/t/docker-bind-code-to-container/122560/1 "2022-03-23T16:53:28Z")

</div>

Hello,  
I need to bind the source code to a docker container, I use the following to run a container as I have also a volume to get the output data.

```auto
docker run -it -v ${PWD}/output:/output --name container_name img

```

I think there is a practical way instead of rebuilding the image after updating the code.

Thanks
