docker run \
--name=$CONTAINER_NAME \
-d \
-p 3306:3306 \
-v /path/on/machine:/path/on/docker \
$IMAGE
- d - DETACH
- p - PORT REDIRECTION WITH DOCKER PROXY
docker logs
-f $CONTAINER_NAME
- f -
docker exec \
--it $CONTAINER_NAME \
-- entrypoint=$ENTRYPOINT \
$COMMAND \
$CONTAINER
- --entrypoint=$ENTRYPOINT -> OVERRIDES DEFAULT ENTRYPOINT
docker build \
-t $IMAGE_NAME:$IMAGE_VERSION $PATH_TO_DOCKERFILE \
--target $NAME_IN_AS
- --target -> BUILD ONLY IMAGE WITH SPECIFIED NAME