diff --git a/wdocker_compose.org b/wdocker_compose.org index e1190eb..fe42365 100644 --- a/wdocker_compose.org +++ b/wdocker_compose.org @@ -9,8 +9,8 @@ commands when writing docker images like: #+BEGIN_SRC sh - docker stop CONTAINER && docker rm CONTAINER && docker rmi IMAGE \ - docker build -t IMAGE && docker start -n CONTAINER IMAGE + docker stop CONTAINER && docker rm CONTAINER && docker rmi IMAGE && \ + docker build -t IMAGE && docker run --name CONTAINER IMAGE #+END_SRC By using wdocker to define a command he can greatly simplify his own @@ -23,9 +23,9 @@ #wd# rm = docker rm {container} #wd# rmi = docker rmi {container} #wd# build = docker build -t {image} - #wd# start = docker start -n {container} {image} + #wd# run = docker run --name {container} {image} - #wd# rebuild: {stop} && {rm} && {rmi} && {build} && {start} + #wd# rebuild: {stop} && {rm} && {rmi} && {build} && {run} FROM ubuntu