skip to Main Content

How to run Docker cmd from Dockerfile?

This is my command: docker run -d --name di MY_DOCKER_IMAGE/cli start accept --token your_token_here I want to run the contaniner with my image and this parameters from Dockerfile. Example: FROM my_docker_image:latest CMD -d --name di MY_DOCKER_IMAGE/cli start accept --token your_token_here…

VIEW QUESTION

Can access to Mysql Database be denied when using docker-compose?

I have a MYSQL database setup with a Dockerfile and a docker-compose.yml like so: Dockerfile: FROM mysql:8.0.32 COPY ector_2022-02-24.sql /var/app/current/ector_2022-02-24.sql COPY insert_user.sql /var/app/current/insert_user.sql docker-compose.yml: version: '3' services: mysql: platform: linux/x86_64 container_name: ector-api-db build: context: . dockerfile: docker/mysql/Dockerfile environment: - MYSQL_ROOT_USER=root…

VIEW QUESTION
Back To Top
Search