Failed to solve changes out of order example in docker

Failed to solve changes out of order example in docker. Oct 12, 2021 · Additional, a possible reason maybe you sometimes in the past, make a wrong tag for python:3. Tried rebuilding but problem persisted. services: reverseproxy: container_name: reverseproxy. command from the /app folder where my newly-created Dockerfile is located. in using Windows 11. Therefore, I have entered to the Dockerfile in order to change a folder that it will copy directly from my The information does not usually directly identify you, but it can give you a more personalized web experience. Note. Check that the Dockerfile for the image is valid. In the stackoverflow I have posted a stacktrace, my dockerfile and docker-compose file. 0 and later. You can see the examples in the gitlab repo. bashrc read automatically upon invocation of bash, it is necessary to invoke bash with the --login or -l option. com/setup/#docker_build. I had to include that subdirectory in . 7 python --version Python 3. The dot was there due to the Dockerfile being in this docker directory, but it couldn't see all the other files in the root folder because the context was set as the docker folder. I then run docker build -t my-image . On Linux, the system takes care of mounting a path to another path. $ docker ps -a. To change the "7s" on this line: The presence of one or more <filename>. -t whatever_tag_you_want So it seems the problem is Docker Compose since you can build the image without it. Luckily, we’re able to resolve this issue. This file will be used to manage the frontend and backend services of your project. 6, build ef23cbc. Before, we had to manually enter the following commands to. Dependencies upgrade: bump cli to 25. key/cert pairs indicates to Docker that there are custom certificates required for access to the desired repository. Mar 19, 2024 · In order to reduce the Docker build context. Apr 5, 2024 · I've recently cloned my repository to a new device. 16. 0. ERROR: failed to solve: executor failed running [/bin/bash -c apt-get update -qq && apt-get install -yqq -o=Dpkg::Use-Pty=0 locales build-essential curl unzip autoconf perl libtool pkg-config sed wget autoconf-archive git python3 gawk protobuf-compiler-grpc && apt-get Feb 24, 2023 · docker compose build out: `` とか. yml up --build -d. 0, for hosts running on kernel version 5. edited Jan 4, 2022 at 1:25. 1. -t localhost/test Open another terminal and run docker ps to find the latest container started seconds ago. the entrypoint shell script is not marked executable for the current user You can control the order of service startup and shutdown with the depends_on attribute. No — I'm ok with that and don't need a new SO question for that. May 29, 2021 · While trying to solve your original problem, why not also try to speed up the process? First, only copy package. ResolvConfPath }}' Find the resolv. This error prevents Docker Jan 29, 2024 · failed to solve: changes out of order: "app/app. ' However, when I run the 'docker-compose build' command, I encounter the following issue: Feb 12, 2024 · The “Changes out of order Error” is a direct result of compatibility issues between the updated Docker 4. 2. The command will pass the Dockerfile and current directory as the build context to the Docker daemon. My system conf - Linux sourav-tuf 5. We can use the outOfOrder configuration parameter to tell Flyway to run these scripts instead of skipping them. Try change to shell form. 4. 12 or later. development. tar. Feb 24, 2019 · In order to get docker-compose to include your changes to your requirements. args: - comapanycode=${COMPANY_CODE} - dbtype=${DB_TYPE} Jan 19, 2023 · Hi, Installed Docker Desktop (v4. d script would have the user Oct 20, 2019 · Here is an example using the public docker container — “hello-world”. 18363 Build 18363 App Version: “Client: Docker Engine - Community Cloud integration: 1. Every time I have done docker-compose pull and docker-compose up I was getting the image from the main instana Github. But in the blog he uses nginx, which I've never used Jan 31, 2023 · If your file is called dockerfile, for example, make sure you capitalize the D in the filename. COPY --from=sqitch-build /app/bin /bin succeeds because Docker will follow the symlink on the target /bin and copy the source /app/bin into the target /usr/bin. 1; Dependencies upgrade: bump compose-go to 2. The final stage based on the smaller ASP. 27 I get "changes out of order errors" when running docker compose build. Apr 7, 2020 · The problem was from image property in docker-compose. container_name: OTP-Nginx. Resolution: The breakthrough came when I realized how Docker determines the build context. Jan 29, 2024 · Since docker desktop upgrade from 4. dockerignore file to solve the build context issue. js servers. Check that the Docker daemon has the correct permissions to access the Docker registry. Nov 9, 2023 · In my case, I had a docker-compose. The daemon will build your image by creating a series of image layers as it processes the Dockerfile instructions. This page describes the commands you can use in a Dockerfile. FROM node:alpine as opsweb-front-end-builder. Fixed "failed to solve: changes out of order" errors when building images on Windows. dockerignore: stat json/package. You can use the --file flag to specify the name and location of the Dockerfile relative to the root of the tarball. Oct 6, 2020 · If you are using Docker Desktop for Mac or Windows, you might have to also disable it in your 'Docker Engine' JSON configuration. json does not change, future runs will use the cached layers, speeding up things a lot! Next, copy your own source code. Jun 21, 2022 · Hello all, I am new to Docker and Github. The same docker file build and run on my machine but on another machine it doesn't. The display here shows the base at the bottom with the newest layer at the top. exe being used. Implies --abort-on-container-exit. v0:failed to read dockerfile: read /va. docker compose --env-file dev up --build. WORKDIR /ng-app. Aug 18, 2023 · Docker Community Forums. If there is a 4xx-level or 5xx-level authentication error, Docker continues to try with the next certificate. Or create two env files if you don’t want to change the content of a single file: docker compose --env-file prod up --build. If Windows style line endings are used, docker run fails with syntax errors. e instead run: docker-compose -f docker-compose-dev. Current version: Docker Desktop 4. json isn't supported on Docker Desktop for Windows or Docker Desktop for Mac. }, and you indicate in a comment that all of the source files and the Compose file are in this same directory. Add a Comment. Set the shell to include -l option. – どうやらこの記事に書いてあることが怪しい. RUN npm run build. bash can return "file not found" when. 3: no match for platform in manifest: not found Type: Bug. 13. Compose always starts and stops containers in dependency order, where dependencies are determined by depends_on, links, volumes_from, and network_mode: "service:". I have forked the famous repo of robot-shop into my own Github account: After I have done it I have changed some files locally. However, despite having one successful docker image build on this device, whenever I try to build a Feb 22, 2023 · COPY instruction, the files won’t be present in the image, except of course if the files already exist in the base image. 27 and the version of docker-compose. Fix for failed to solve: changes out of order errors while building images on Windows Full Changelog Fix canonical container name in --dry-run by @jhrotko in #11425 Mar 19, 2024 · Next, let’s write the Dockerfile of the sample-site to extend sample-site-base: FROM sample-site-base:latest. 1 to 4. Because we respect your right to privacy, you can choose not to allow some types of cookies. Nov 22, 2017 · I'm trying to start 3 docker containers in a sequential order using the docker-compose. yml up --build --no-deps --renew-anon-volumes --detach your_service. I found this blog post which addresses the issue exactly. It seems kind of obvious but I struggled a lot to find the correct way to write this Dockerfile. Peter Mortensen. The original issue was Can't change my. The backup was on disk with the same permissions as the original, so copied all the docker folder with cp -rpv. build: context: . I just expect build to succeed like in older docker desktop version. lock" "" issue from agentkit/BCG-X-Official github repository. Otherwise, you can pass the --file argument and overwrite the default name. yml file that looks like this: reverseproxy is my nginx container, and service-a and service-b are Node. Created a sample Image for running a Python file and it also works fine. WORKDIR /app/frontend. Is there an example? I've done the following; Tried identifying any processes/apps that interfere with the docker build process. Oct 24, 2017 · Another big thanks here! I had my Dockerfile in a folder named docker and all files to be copied outside it in the root folder. Invoke -l for specific commands using the exec form of RUN: Nov 23, 2017 · Docker Compose prints those logs as they arrive, which means that logs for container "B" may arrive later than container "A". Despite this explicit path, Docker was including all files from the current directory on Drive C, leading to an inflated build context and the failure of the build. Check that the Docker daemon is up and running. Dec 17, 2023 · By default, Flyway ignores our newest migration. RUN mkdir -p /tmp/downloads. inside the frontend folder, but in the images list it shows up as dangling (repository and tag are set to <none>) It’s none, because you need to add a tag. Reinstalled Docker Desktop completely. The Docker CLI searches for a file named . For example, when you run the following command on Linux: If your Docker is latest version, then the default behaviour of this command: docker build --target builder -t alexellis2/href-counter:latest . A Dockerfile is a text document that contains all the commands a user could call on the command line to assemble an image. Mounts}}' [container] gives you the volume name (key volume) where the data is. docker build -t <name:tag> . /. docker-compose. Finally, let’s run the command in projects/sample-site to build the image of our application: $ docker build -f docker/Dockerfile -t sample-site:latest . dockerignore and that solved the issue. It is possible that your environment variables are not being loaded correctly. So obviously the variable CONTAINER_VERSION was not pass correctly. Feb 27, 2022 · Just the diagnostic output on its own isn't enough; include at least the Dockerfile and the docker build command you used to run the image. Create a network: docker network create hitc-network. NET Web API. failed to solve: changes out of order: "ca-certificates/. You will get a message, “Hello from docker!” but try to find the container using this code: docker ps -a | grep hello-world Mar 25, 2024 · To make a new file called docker-compose. hmtl file im my local file, vinnyx05 -> is my login at docker, im running docker desktop. 11. " You can create a run. If you haven’t checked it yet, this might be a first hint. base -t helloworld. You are using the exec. If a layer changes, all other layers that come after it are also affected. /proxy. Thank you. env file with the content. Docker Desktop → Settings → Docker Engine → change the "features": { buildkit: true} to "features": { buildkit: false}. 9 Version: 20. # or. Oct 7, 2023 · It also seems to build without errors using docker build . with same workflow file , it was a successful build on Build 86 but somehow failed at Build 87 I can build successfully on my local. Oct 6, 2023 · Create a . Now trying to create an Image for building a Windows WPF application. – Feb 18, 2020 · The other change, according to the Docker reference, the ENTRYPOINT command takes two forms. 26. is exactly what you expected. json src/ componants/ dockerfil Feb 4, 2024 · fails because Docker will not copy /app/bin (a directory) over /bin a symbolic link. 4". Important. so it's not deleted, and can be inspected via: docker run --rm -it <id_last_working_layer> bash -il. and run. Nov 6, 2017 · 15. 1 and ipv6's ::1 (based on some other SO posts). The Exit Code. not install laradock Type: Bug. Feb 14, 2024 · Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question. ecc ecc. 10 python:3. ini" "" This setup worked totally fine before I updated docker desktop. This behavior has changed in v25. You can probably achieve that if you sort the results on the time column, something like: I am using php-fpm on debian with nginx for php5 support. json instead of a socket. Apr 26, 2022 · With this change we can re-build the Docker image, and run the app again with. as the path on the left-hand side of COPY, or leave it out entirely. COPY package. Feb 8, 2018 · 3. Aug 8, 2023 · An error, "failed to solve with frontend dockerfile. in there you can even re run your failed command and test it live. After this change, the COPY command will have to run again in order for those changes to appear in the image. Therefor, personally I always use a different command when starting a container in docker-compose for example: npm run start:debug. 10, like next, then it could result your issues: $ docker tag python:3. We can use the . An option --exit-code-from SERVICE can be used with docker-compose up :) From the documentation: docker compose up. The build resolves the Dockerfile from the tarball context. If multiple certificates exist, each is tried in alphabetical order. git directory is a start; if it's much larger than you'd expect, you can then look back through recent history and see if there are any enormous diffs (try git log --shortstat for example). I did the following and lost all the changed data in my Docker container. 2364) machine and it works fine. failed to solve: varnish:6. 41 Go version: go1. May 28, 2021 · Solution. Using this, you can also quickly see the size of each layer, helping diagnose large images. Share and learn in the Docker community. Which will force a docker-compose rebuild the image. In Docker Hub, navigate to the build page for the repository that has linked private submodules. The additional flag will allway recreate all anonymous volumes on the restart for this service. The only way to solve that would be to buffer all logs in memory, wait for all logs to arrive from the API, and then sort the results. MODE=prod. By using the "depends_on" command in docker compose file, it is possible to change the starting order of the containers and give the priority to the containers which are needed to start early. This way, as long as package. Tried changing Python versions inside my Dockerfile. COPY frontend/ . My folder structure is: build/ docker-compose. yml: version: "3" services: good: build: dockerfile: good/Dockerfile image: good bad: build: dockerfile: Oct 20, 2016 · In this troubleshooting guide aimed at people new to Docker, you’ll troubleshoot problems when building Docker images, resolve naming collisions when running containers, and fix issues that come up when communication between containers. json: file does not exist. how do i solve this Mar 8, 2024 · 107 mkdir -p /usr/src/ngx_headers_more 108 && cd /usr/src/ngx_headers_more \ No \ in line 107 Jun 14, 2023 · i'm doing a tutorial in docker, and trying to copy a image from docker, and reference the index. 114-2-MANJARO #1 SMP PREEMPT Sun Jun 4 10:32:43 UTC 2023 x86_64 GNU/Linux (24g ram) i have a mint machine, where i dont need all these ulimits, and its still working, this is arch os prob maybe. 1) on Windows 10 (21H1, 19044. same command works inside wsl. Apr 11, 2023 · DOCKER_BUILDKIT=0 docker build . yml like this: build: . Addition 1: I thought a bit about this and it is also a good practice to use environment variables to config a docker-image instead of adding a file to it. Previously, docker data was in /var/lib/docker, but my new disk is mounted in /srv, and moved the data to /srv/docker. Then all changes locally, will directly be mounted into the container as well. Dec 3, 2018 · Hi, I installed Docker CE on my machine after upgrading my OS. yml file: version: "3" services: web: build: context: . Nov 19, 2023 · Run the docker ps on the command prompt and it will show all the running containers in your docker environment, along with their details like their container id (which Is a random 15 characters long), Image which is contained by the containers, the Command which tells what the docker container is executing in the image, status, creating time and so on. When I removed it & ran the below command: docker-compose --project-name my-web -f docker-compose. For an example of this issue and the resolution, see this issue on GitHub: Docker RUN fails to execute shell script. Build the Child. 12, build e91ed57 Other machine: Docker version 23. RUN apk add --update wget bash libc6-compat. In other words, Docker will invalidate the cache for this layer. RUN mkdir -p /app/frontend. and i use only FROM and COPY in Dockerfile as shows in the uploaded image. Solutions: It turns out there were two issues here: I should have run the docker build -t getting-started . v0: Feb 21, 2014 · That way you can use your config files normally, but when you run docker, it will swap the values out with the env variables. txt" #25. To complete this tutorial, you will need. sql: Apr 6, 2021 · Issue Type: Docker Failed to Start OS Version/Build: Windows 10 - 10. docker stop. In case the file exists, the CLI excludes directories and files that match its patterns. From the BuildKit`s page: BuildKit is the default builder for users on Docker Desktop and Docker Engine v23. If sb can explain it — ok. 15 Git commit: 55c4c88 Built: Tue Mar 2 20:14:53 2021 OS/Arch: windows/amd64 Context: default Experimental: true” Steps to reproduce: Install Docker and try to run Linux As the title says, my nginx container is not working as expected unless I restart it. 04, I'm getting this error: ERROR: failed to solve: executor failed running. Description docker compose build command fails with correct Dockerfile using windows. 7 with python:3. #3501 opened on Feb 14 by iceverge. docker compose up -d --build. If above is your case, do next to clean the environment, then repeat your steps to Mar 27, 2024 · Checking on desktop I see no space and any problem with the commands but it is better to start with separate RUN commands so you can identify the specific command that is erroring, so in your case you should start with. Open I have a flask app running in AWS ec2 inside a docker container and I am having latency problems. I would like to have php-fpm to be under the user&amp;group php-user instead of www-data. If Docker starts successfully, it's now listening on the IP address specified in the hosts key of the daemon. the code is: PS C:\html> docker build -t vinnyx5/nginx-imersao13:latest . Options: --exit-code-from SERVICE Return the exit code of the selected service container. Apr 9, 2019 · To use the existing MySQL data with a new container: docker container inspect -f '{{. Jan 2, 2024 · Now i migrate to docker compose v2 and running this leads to: failed to solve: failed to parse stage name “any-docker-image:”: invalid reference format. docker run --rm-p 8000:5000 centos-test and finally, we can call the endpoint from our browser: So the important take away here is: Oct 28, 2022 · Everything has been fine for me with Docker Desktop for months. Jul 19, 2023 · The solution was to install and build the server and frontend in their own folders. COPY html/* /etc/nginx/html/. 内容を私が理解した形で書くと、docker build時にコピーするファイル (=ビルドコンテキスト) を指定するときは相対パス (カレントディレクトリからのパス)で指定 Nov 24, 2020 · One can provide the filename of the Docker file using -f. -f Dockerfile. You can either try to run your container without the -d flag, or check the exit code of a stopped container with. Instead I did. Containers Mar 18, 2019 · Therefore, in order to have . For example, SHELL ["/bin/bash", "-l", "-c"] 2. In my test, I ran the command from the root folder where Feb 18, 2024 · failed to solve: changes out of order: "app/poetry. yml -f docker-compose. In this case you should use . c file. Apr 12, 2020 · If this is just for local execution you can also think about creating 2 separate docker images, and use docker-compose to spawn it all. txt you will need to pass the --build flag to docker-compose. docker run *-p 8080:80* --name <container_name> <name:tag>. Dockerfile reference. Run sudo systemctl daemon-reload before attempting to start Docker. yml from rabbitmq:3-management to rabbitmq:3-management-alpine (see TL;DR example) and run docker compose up --detach, the log output looks pretty much like it was with docker run rabbitmq:3-management, and, once again, both broker interface and the management plugin interface work just fine at Jun 8, 2023 · In my docker file I use the command 'COPY package. Jul 10, 2023 · I'm trying to build a simple react app and dockerize it using yarn, pnpm, npm and gulp. . Docker can build images automatically by reading the instructions from a Dockerfile. failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile. I'm in the process of building a Docker image for myself using the method 'Build the Docker image yourself' from the main source 'https://docs. 【docker】ビルドコンテキスト(build context)とは?. Dockerfile - < foo. I am on Windows 10. 7 $ docker run --rm -it python:3. For instance, if your Docker file is called Dockerfile. dockerignore in the context’s root directory before sending it to the Docker daemon. This is the new docker-compose. /app Feb 24, 2022 · I was struggling with similar problem and debugged it and seems this relates to concurrency somehow and mysql1 is trying to parse response for connect when running a query on some versions/configurations of mysql server. I have several services defined in a docker-compose. base, call the build command as follows: docker build . NET Core Runtime image that imports the artifacts from the previous stage and defines the entry point. Here it is : FROM node:latest. Then start a new mysql container and mount the volume under /var/lib/mysql: Each of the lines represents a layer in the image. docker container inspect heuristic_pare --format '{{ . If you have docker installed on your system or VM instance, run this: docker run hello-world. prod. ) At the bottom of the screen, select the plus icon next to Build Environment variables. Dockerfile in the tarball: $ docker build --file test. None of this "add a string of text to your config files that you search and replace with. Dec 11, 2020 · docker build -f "F:\Path\To\Project\Dockerfile" -t myapp . The exec form and the shell form. yaml up -d EXPECTED RESULTS zabbix ubunto with mysql must to start ACTUAL RESULTS fails with the I'm trying to do the docker-compose up -d but i'm getting this error: Failed to solve: changes out of order: "conf/requirements. json" Type: Bug. Sep 22, 2022 · In the end I found a (or the) solution in the Docker forum: in Docker Desktop, navigate to Settings > Docker Engine, change buildkit to false in the Docker daemon configuration file and then click "Apply & Restart". docker build -t centos-test . 0 (Docker version 25. @DavidMaze my build command is docker build -t react-app . It's not that the cache is "invalidated", it's that there is no cache at all. Docker Community Forums Docker commit change ENTRYPOINT problem Apr 14, 2023 · When I'm trying to build a Dockerfile in Ubuntu 22. cnf file. Fixed issue when checking external network existence when swarm is Jul 27, 2020 · Now, if we change the image in docker-compose. (If necessary, follow the steps here to configure the automated build. Then, you can start the build image using the following command: docker run --rm -it helloworld. json . . ', but I received the error: COPY failed: file not found in build context or excluded by . docker build -t web:latest --file custom-dockerfile . Oct 30, 2023 · In your example, you specify build: { context: . yml file. I thought the init. conf with buildkit Copy the private half of the keypair to your clipboard. v0" 1 failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile. Sep 5, 2022 · A simple Dockerfile for a small . Unused build stages are skipped. #3500 opened on Feb 13 by gianmarx. Oct 6, 2021 · I'm pretty new to Docker and would appreciate if someone could help point out how I can get this working. RUN mkdir /ng-app. --abort-on-container-exit Stops all containers if any container was stopped. RUN npm install. To fix the problem with anonymous volumes you only need to add --renew-anon-volumes: docker compose -f docker-compose. The following command builds using test. A good example of when you might use this is an application which needs to access a database. Check that the image you are trying to start is valid. Nov 17, 2023 · Suddenly build failed, but I didn't change anything about the workfile. In earlier versions of Docker Engine, recursive mounts (submounts) would always be mounted as writable, even when specifying a read-only mount. docker exec (import and process some files, launch a server to host them) Then I wanted to run it on a different port. gz. From a docker point of view, they are different images at all. This will make any changes overlapping with If you’re working with docker-compose or Docker stack, check out this article first. I found few solutions for my problem. Aug 14, 2021 · This is how i do it, hope fully this will solve your err. Oct 6, 2014 · This has the double effect of printing out the reason for the failure, AND this intermediate step is not figured as a failed one by docker build. It will be something random like fervent_taussig. Now, read-only bind mounts are recursively read-only by default. I have the following containers: app-service-db container -> Database ; config-service container -> Spring boot application; app-service container -> Spring boot application Oct 25, 2019 · Here, we name the image django-polls and tag it with version v0: docker build -t django-polls: v0 . 0-rc. Let’s try it in our project by adding a new migration with the name V1_1__add_zipcode_to_city. json and run npm install. docker build . However this will rebuild all images in the docker-compose file which may or may An image is built by adding content on top of the existent content, so if you change the order, you're changing the structure and therefore, building a different image. Asking for help, clarification, or responding to other answers. I pruned the docker system and restarted the docker engine. 3; Bug fixes and enhancements. “prod” and “dev” then must contain MODE=prod and MODE=dev. PS C:\Windows\System32> wsl --status Default Distribution: docker-desktop-data Default Version: 2 Windows Subsystem for Linux was last updated on 3/28/2022 WSL automatic updates are on. This Dockerfile contains two build stages: The publish stage based on a full SDK image that builds the application. paperless-ngx. gitkeep" "auth. My repository is run in a docker environment. Provide details and share your research! But avoid …. Any idea on how to fix this issue. profile/. I don't understand the root of the bug, but I have solved it. Setting hosts in the daemon. I have solved it and posted an answer. yml up --detach It was successful. docker stop & docker run does not work. yml for your project, head to the root of your project folder. Well, of course it's nice if your machine isn't already dying for other reasons, but Git did ask for 500MB for a reason, so if you want to try to track that down, checking the size of the . You can do this in a couple ways: 1. Prerequisites. yml package. 10. version: "3. Jan 20, 2021 · Assuming the images are removed and replaced with text and the question doesn't get closed. I noticed that I don’t have the docker-desktop wsl2 that is mentioned here [1],. The way I figured it out was to copy files in the root directory to a new folder, than copy subdirectories one-by-one to this new folder, and run docker compose after each copy to see when it breaks. Docker installed on a server or your local machine. and finding the most recent one in the output. 24. Click on the different category headings to find out more and change our default settings. Check that the Docker daemon has access to the internet. I. My machines docker version: Docker version 20. 1) Feb 13, 2024 · SUMMARY OS / ENVIRONMENT / Used docker-compose files CONFIGURATION STEPS TO REPRODUCE docker-compose -f docker-compose_v3_ubuntu_mysql_local. Nov 19, 2017 · Thank you for the suggestion, but I don't think so. Before starting the daemon, I copied over the docker folder from my backup to the new disk. 5 API version: 1. yaml file inside a subdirectory. You might want to switch to that as well. For example, suppose you make a change to your program in the main. Nov 16, 2021 · That's why the volumes are there. 4 2024-01-29 Update. I figured this is because inside the container, localhost routes to both ipv4's 127. sh file with replacement values using your environment variables. 1; Dependencies upgrade: bump docker to 25. 27. not sure. 4. Run. Path conversion on Windows. 15. 3. /nginx. I recognized that in v2 you can add the build section the docker-compose. lo bn tk oj go vb qf yy oc sp