docker-compose


How to stop docker-compose run command


I'm using a node docker with a simple aplication created with strongloop I want start arc slc arc instead the default command slc run
my app is called app in the docker-compose.yml file, I run the following command
$ docker-compose run app slc run
Arc starts but I can't stop the command, I've tried CTRL + C
You might need to add the following lines to your docker-compose file since you're running it in the foreground:
tty: true
stdin_open: true
This will send the signal to the container application instead.
If that doesn't work, I would just run the application as a daemon using the -d flag.
docker-compose run app slc run -d
You can stop or kill using:
docker-compose stop
docker-compose kill
docker stop [container names]
docker kill [container names]
Running the docker-compose commands will stop or kill all of the running containers, you can add individual container names after the command if you only want to kill individual containers.

Related Links

Using custom hostnames for docker local development containers
Changing the network name?
Let external container know about subnets created by multiple docker-compose projects
How to monitor / discover more docker containers with prometheus
two docker-compose .yml in the same network with COMPOSE_PROJECT_NAME
docker compose 3.1(swarm), secrets, ssl and nginx
What is the version directive for?
How to run docker-compose up -d at system start up?
In Docker Compose can I have services exiting
Docker compose - secrets Additional property secrets is not allowed
docker-compose mounted volume remain
Should I do anything after upgrading docker-compose?
docker caddy proxy not forwarding
docker share OS volume between services
How dynamic map service name to ENV var
docker-compose v3 services on several networks

Categories

HOME
asp.net
marie
pyspark
azure-eventhub
webvr
android-ndk
nagios
singleton
query-string
datetimepicker
aggregation-framework
hibernate-mapping
jquery-select2
yacc
dcos
logstash-configuration
swift3.1
react-select
web-testing
vivado-hls
geography
novacode-docx
legend-properties
summernote
git-branch
onclicklistener
poisson
orgchart
hierarchical-data
azure-table-storage
kundera
lines
http-proxy
scalamock
gem-fury
usernotifications
vertical-alignment
electron-packager
ape-phylo
uitextview
definition
web-technologies
qt-quick
wufoo
smooth-streaming
taleo
automapper-4
spring-cloud-bus
opticalflow
chain
pyautogui
recursive-query
blitz3d
timefield
class-design
disconnect
angularfire
supervised-learning
avaudiorecorder
user-profile
mod
video-embedding
dcast
hana-sql-script
gitk
jts
personality-insights
dnvm
maven-archetype
veeam
nfa
service-broker
quickfixn
crystal-reports-7
uiblureffect
diffmerge
register-allocation
dirname
windows-search
episerver-7
pthreads-win32
mdp
raddatepicker
nsnumber
objectdatasource
jython-2.5
wpd
backbone-views
proj4
nx
rbm
teamsystem
xcode4.6.3
bash4
reflexil
wxperl
helicontech
project-files
datejs
clgeocoder
backlight
xcdatamodel
nscharacterset
activescaffold
pixel-bender
authkit
j++
cons

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App