New answers tagged

2

What would be the best way to share ports among the containers? You don't really "share" ports between containers. Instead, you want to create network and attach each container to that network. Each container gets a network alias (essentially a hostname) that you can use to hit the service. $ docker network create foo $ docker run --network=foo --...


1

You can include the arguments in the deployment yaml. The official docs include examples and further customization. spec: containers: image: myimage name: myContainerName args: ["me", "yes", "https://my.url"]


Top 50 recent answers are included