You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Volumes are currently declared via -v command-line arguments to docker run, making it difficult to add and remove files and directories when changes to the default configs for the image are needed.
{
net: 'bridge', // network mode (auto | host | bridge). defaults to bridge
tty: true, // be a tty. defaults to false
fork: true, // fork (do not attach stdio). defaults to false
remove: true, // remove the container on stop. defaults to true
dns: ['8.8.8.8'], // set custom dns servers
ports: {
8080: 8081 // expose container 8080 to host 8081
},
volumes: {
'/root': '/tmp', // expose container /root to host /tmp
'/root': '/tmp2:ro' // expose container /root to host /tmp2 as read only
},
links: {
'container-name': 'alias' // link container-name as alias
},
env: {
FOO: 'bar' // set env vars
},
entrypoint: '/bin/bash' // override entrypoint on container
}
The text was updated successfully, but these errors were encountered:
cmelion
pushed a commit
to cmelion/ng2-webpack-demo-app
that referenced
this issue
May 15, 2016
Volumes are currently declared via -v command-line arguments to docker run, making it difficult to add and remove files and directories when changes to the default configs for the image are needed.
The above would be fine, but the json format does not allow multi-line strings.
Investigate using docker-run:
The text was updated successfully, but these errors were encountered: