Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CloudComputing
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
odmc
CloudComputing
Commits
d882bc20
Commit
d882bc20
authored
6 years ago
by
Giuliano Taffoni
Browse files
Options
Downloads
Patches
Plain Diff
Add new file
parent
eca8d53e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Docker/04Volumes/README
+27
-0
27 additions, 0 deletions
Docker/04Volumes/README
with
27 additions
and
0 deletions
Docker/04Volumes/README
0 → 100644
+
27
−
0
View file @
d882bc20
docker run --name ubuntu.test -ti -v $(pwd):/data ubuntu bash
--volumes source:destination:key key=ro
--mount type=bind,source="$(pwd)"/target,target=/app
docker run -d -it --name devtest --mount type=bind,source="$(pwd)"/,target=/data ubuntu bash
docker volume create odmec_vol
docker volume ls
docker volume rm ID
docker volume ls
docker swarm init
docker build -t vol_example .
docker service create -d --replicas=4 --name devtest-service --mount source=odmec_vol,target=/data vol_example
docker service create -d -p 4000:80 --replicas=4 --name devtest-service --mount source=odmec_vol,target=/data vol_example
docker service rm u1dw8uaahvwtjup4ze2daempd
docker swarm leave --force
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment