Leave a Comment
docker simple starter
Build and run (on linux do not forget sudo):
1 2 |
docker image build -t <image-name> . docker container run --env "DOCKER=true" --env "NODE_ENV=test" --env "NODE_PORT=8000" --mount "type=bind,source=/etc/nginx/sites-enabled,target=/sites-enabled" --env "PATH_CONF=/sites-enabled" -p 8000:8000 --rm --name <container-name> --network=host <image-name> |
Login into container
1 |
docker container exec -it <container-name> bash |
Similar Posts
LEAVE A COMMENT
Для отправки комментария вам необходимо авторизоваться.