docker-compose: command

Let's learn the compose command below:

build builds or rebuilds the service
help command help
kill kills the container
logs shows the output of the container
port prints the bound open port
ps show container
pull pull service image
restart restart the service
rm removes stopped containers
run runs a one-time command
scale sets the number of containers for the service
start start the service
stop stop the service
up creates and starts the container
stop, start, restart, rm can only specify the corresponding service operation




Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325917779&siteId=291194637