Convert a docker run statement into a docker-compose.yml file -
i have following image works great via command
docker run my-hello-world echo hello! obviously contrived example how can convert small docker-compose.yml file? docker-compose doesn't appear have run command. can not run containers???
you can run container's command docker compose , provision containers. don't use docker run instead use docker-compose up , down , down containers. in case, try create docker-compose.yml file contents:
version: '2' services: app1: image: my-hello-world command: "echo hello!"
Comments
Post a Comment