There are scope of services which defined in docker-compose.yml. These service have been started. I need to rebuild only one of these and start it without up other services. I r
docker-compose stop nginx # stop if running docker-compose rm -f nginx # remove without confirmation docker-compose build nginx # build docker-compose up -d nginx # create and start in background
Removing container with rm is essential. Without removing, Docker will start old container.