-
The cmd parameter of docker executes two commands at a time
encountered this problem when using docker: my php project uses composer to install extensions. I want to update every time I run docker, and also run php start.php . This results in two commands composer update and php start.php in the cmd of th...
-
If there are Chinese comments in docker-compose.yml, an error will be reported.
just get rid of the Chinese comments. How to solve the system environment windows10,?
...
-
How Dockerfiler uses multiple CMD commands
use CMD to run npm start (port 3000) and node. server server.js (port 8080) in Dockerfile
Dockerfile:
FROM node:8.9-alpine
ENV NODE_ENV production
WORKDIR usr src app
COPY ["package.json", "package-lock.json*", "npm-shr...
-
How do I execute multiple commands in command in a docker-compose.yml file?
< H1 > problem description < H1 >
I want to use docker to package my Django project, and then use docker-compose for service orchestration to run the database needed by the Django project. Suppose the content in docker-compose.yml is as follows:
vers...
-
Laradock win10 environment, ssh to workspace, git command is very slow
git and site access are very slow. Are there any students who encounter the same problem? ...
-
Questions about docker Mirror
one thing I don t understand when using docker: is there any difference between pull a mysql from an official image and then run it on my machine? is there any difference between using Dockerfile to first pull a centos image and then installing a mysql...
-
There seems to be another problem with docker on win.
just write a simple mysql service
< H1 > docker-compose.yml < H1 >
version: 3
services:
mysql:
image: mysql:5.7
volumes:
- . mysql data: var lib mysql
- . mysql my.cnf: etc mysql conf.d my.cnf
ports:
- 3306:3306
...
-
When docker created the nginx container, it was wrong to mount the configuration file, and the boss was eager to mention it! Thank you!
docker and ngixn image information are as follows:
root@iZ28q62x60iZ: srv testServer-sharp docekr run --name nginx -d -p 80:80 -v $PWD conf nginx.conf: etc nginx nginx.conf nginx
No command docekr found, did you mean:
Command docker from packa...
-
It seems that there is no need to install docker when docker machine is used?
problem description
want to try docker swarm , and then find that it needs to set up some docker machine , docker machine is to run a real virtual machine, this virtual machine will be embedded with Docker Engine (, that is, those commands that can ...
-
I would like to ask docker-compose after establishing links, what is the reason for not creating a reference in / etc/hosts?
docker-compose.yml
version: 2
services:
api:
build: .
links:
- mongo:mongo
ports:
- 9527:9527
restart: unless-stopped
volumes:
- $PWD: usr src app
env_file:
- .env
environment:
- MONGO_...
-
Docker runs the container, and the container is paused every other day?
I used the docker-compose orchestrated image to run the spring cloud project. there is no problem with the access of the container on the day it runs. After a day, the container is suspended. I can resume it by executing the docker unpause command. What...
-
How to run laravel app? with docker-compose
I want to run laravel app, in docker. Here are my steps. I hope someone will tell me what went wrong.
1. Create a laravel app locally
composer create-project --prefer-dist laravel laravel laravel-app 5.6
2. Create docker-compose.yml
version: ...
-
The docker-compose mysql volumes directory mount problem caused the container to fail to start!
it s OK to mount the directory directly through the command line run-v, but I have a problem when I mount the directory through compose volumes. Other nginx redis mount directory files are normal, but mysql is not successful. I can mount the my.cnf con...
-
How can the start and stop of container container in docker production environment avoid service interruption?
I have seen some articles that use docker for continuous integration. The code of the program is encapsulated in image. Every time a new submission is made, it will generate a new image, and then go to the host running container to stop container, remov...
-
How to customize the location of the global volume in docker-compose?
problem description
give an example
version: 2
services:
portainer:
image: portainer portainer
command: -H unix: var run docker.sock
restart: always
ports:
- 9000:9000
volumes:
- var run docker.sock: var run ...
-
Docker volumes is hung in the configuration directory, how to write the default configuration of the container to the host directory?
volumes instruction of docker-compose used
is that I want to up a container. I use volumes to mount the configuration directory of the container to a directory of the host. The corresponding directory of the host is empty. I think the files of the cor...
-
How to migrate the container to another machine after the docker-compose is built successfully?
The question is this: for example, if I have built a set of services using docker-compose on machine a, is there any way to quickly use these containers on other machines (b machines)?
the way I can think of is:
put all the files needed to build on...
-
Docker lnmp Domain name Resolution Scheme
problem description
in the process of development and testing, we often have to do all kinds of test domain names. How to manage domain name resolution elegantly through the lnmp environment established by docker-compose?
only consider docker-compos...
-
Invalid docker .env file definition WWW_PATH
File directory: .env docker-compose.yml
.env:
-sharp
ROOT_PATH=. services
-sharp
WWW_PATH=. www
-sharp nginx
NGINX_WWW_DIR=$(WWW_PATH)
docker-compose.yml
- ${NGINX_WWW_DIR}: data www:rw
: Named volume "WWW_PATH: data www:rw " is used in ser...
-
What is the difference between the docker ps and container commands?
I use docker-compose to start containers, docker ps-al lists containers that are stopped, and docker container ls lists containers that are running, but containers that start directly run, containers in "running " and "exit " status, can be seen...